### Question:
FieldComponent { public final ResourceMetadata getComponentMetadata() { return componentMetadata; }  final void setup(String name, AccessibleObject fieldOrMethod, FormField field, SlingScriptHelper sling); abstract void init(); final void setHelper(SlingScriptHelper helper); final SlingScriptHelper getHelper(); final void setPath(String path); final String getPath(); @Deprecated final Field getField(); final AccessibleObject getAccessibleObject(); final FormField getFieldDefinition(); final String getHtml(); Resource buildComponentResource(); final ResourceMetadata getComponentMetadata(); final Map<ClientLibraryType, Set<String>> getClientLibraryCategories(); final void addClientLibrary(String category); final void addClientLibraries(ClientLibraryType type, String... categories); final void addClientLibraries(ClientLibraryType type, Collection<String> categories); final void addClientLibraries(FieldComponent component); final String getResourceType(); final void setResourceType(String resourceType); final String getResourceSuperType(); final void setResourceSuperType(String resourceSuperType); final void purgeEmptyMetadata(); final String getName(); final Collection<String> getOptionNames(); final boolean hasOption(String optionName); final Optional<String> getOption(String option); final Optional<Boolean> getBooleanOption(String option); final String getCategory(); final void setCategory(String category);  }### Answer:
@Test public void testDefaultFormValuesMatchCodeDefaults() { Map<String, FieldComponent> form = AnnotatedFieldDeserializer.getFormFields(AnnotationTestClass.class, null); assertEquals("Should have default string value", TEST_VALUE_1, form.get("test1").getComponentMetadata().get("value")); assertEquals("1st Checkbox should be checked", "true", form.get("isChecked").getComponentMetadata().get("checked")); assertEquals("2nd Checkbox not should be checked", null, form.get("isNotChecked").getComponentMetadata().get("checked")); }