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