### Question:
FormBuildingServiceImpl implements FormBuildingService { @Override public FormDefinition generateFormForClass(Class clazz, FormElementFilter... filters) { if (clazz == null) { throw new IllegalArgumentException("Cannot generate form: Class cannot be null"); } return formGenerator.generateFormForClass(clazz, filters); } @Inject  FormBuildingServiceImpl(FormGenerator formGenerator); @Override FormDefinition generateFormForModel(Object model, FormElementFilter... filters); @Override FormDefinition generateFormForClass(Class clazz, FormElementFilter... filters); @Override FormDefinition generateFormForClassName(String className, FormElementFilter... filters);  }### Answer:
@Test public void testGenerateFormForClass() { FormDefinition form = formBuildingService.generateFormForClass(Person.class); testGeneratedForm(form, Person.class.getName()); }