when(valueSpecificationIter2.hasNext()).thenReturn(true).thenReturn(
false);
when(valueSpecificationIter1.next()).thenReturn(valueSpecification1);
when(valueSpecificationIter2.next()).thenReturn(valueSpecification2);
when(valueSpecification1.booleanValue()).thenReturn(true);
when(valueSpecification2.stringValue()).thenReturn("Lofi");
ArrayList<String> constructorParameterNames = new ArrayList<String>();
constructorParameterNames.add("type");
constructorParameterNames.add("name");
enumGenerator.setConstructorParameterNames(constructorParameterNames);