EnumTypeDefinitionBuilder implements DeclaredTypeDefinitionBuilder { @Override public boolean accept(ProcessingEnvironment processingEnv, DeclaredType type) { return isEnumType(type); }  @Override boolean accept(ProcessingEnvironment processingEnv, DeclaredType type); @Override void build(ProcessingEnvironment processingEnv, DeclaredType type, TypeDefinition typeDefinition); @Override int getPriority();  }
@Test public void testAccept() { TypeElement typeElement = getType(Color.class); assertTrue(builder.accept(processingEnv, typeElement.asType())); }