when(slot.getValues()).thenReturn(valueSpecifications);
when(valueSpecifications.iterator()).thenReturn(valueSpecificationIter);
when(valueSpecificationIter.hasNext()).thenReturn(true).thenReturn(
false);
when(valueSpecificationIter.next()).thenReturn(valueSpecification);
when(valueSpecification.booleanValue()).thenReturn(true);
enumGenerator.generateConstants(enumeration, ast, ed);
assertEquals("public enum Company {HOME(true)}\n", ed.toString());
}