@Test(expected = RuntimeException.class) public void it_should_complain_when_both_arguments_and_commands_are_used() { schemeBuilder.addCommand(firstCmd); schemeBuilder.addArgument(firstArg); fail("should not allow use of both arguments and commands"); }