public void testAppendWithoutDefault() {
DefaultCommandFactory factory = new DefaultCommandFactory();
factory.setUseDefaultCommands(false);
Map<String, Command> commands = new HashMap<String, Command>();
commands.put("foo", new NOOP());
factory.setCommandMap(commands);
assertTrue(factory.getCommand("FOO") instanceof NOOP);
assertNull(factory.getCommand("stor"));
}