BogusCommand1.java

public class BogusCommand1 implements CommandObject
{
    protected String a,b;

    public BogusCommand1(String a,String b)
    {
        this.a = a;
        this.b = b;
    }

    public BogusCommand1()
    {
        this("Amos","Andy");
    }

    public Object doCommand(Object arg)
    {
        return new GenericResponse(
            "BogusCommand1(" + arg + "): " + a + " and " + b);
    }

    public String toString()
    {
        return "BogusCommand1[a='" + a + "',b='" + b + "']";
    }
}