EnumGenerator implements CodeGenerator { @Override public String generate(final Type type) { if (type instanceof Enumeration) { final Enumeration enums = (Enumeration) type; final EnumTemplate enumTemplate = new EnumTemplate(enums); return enumTemplate.generate(); } return ""; }  @Override boolean isAcceptable(final Type type); @Override String generate(final Type type); @Override String getUnitName(final Type type);  }
@Test public void basicTest() throws Exception { assertEquals("", new EnumGenerator().generate(mock(Type.class))); }