assertTrue(iter.hasNext());
assertNotNull(iter.next());
assertFalse(iter.hasNext());
// there are no definitions
cmd = new NoParamTestCommand();
defs = cmd.getParameterDefinitions();
iter = new RequiredParameterDefinitionIterator(defs);
assertFalse(iter.hasNext());
}