@Test public void test() { EchoShellFactory echoShellFactory = new EchoShellFactory(); assertTrue(echoShellFactory.create() instanceof EchoCommand); }
public Command create() { return new EchoCommand(); }
EchoShellFactory implements Factory<Command> { public Command create() { return new EchoCommand(); } }
EchoShellFactory implements Factory<Command> { public Command create() { return new EchoCommand(); }  }
EchoShellFactory implements Factory<Command> { public Command create() { return new EchoCommand(); }  Command create(); }
EchoShellFactory implements Factory<Command> { public Command create() { return new EchoCommand(); }  Command create();  }