### Question:
BaseFormResolver implements FormResolver<T> { @Override public void destroyForm(T form) { if (form != null) { managedInstance.destroy(form); } } BaseFormResolver(final ManagedInstance<T> managedInstance); @Override T newProviderConfigurationForm(); @Override void destroyForm(T form);  }### Answer:
@Test public void testDestroyForm() { formResolver.destroyForm(form); verify(managedInstance, times(1)).destroy(form); }
@Test public void testDestroyNullForm() { formResolver.destroyForm(null); verify(managedInstance, never()).destroy(anyObject()); }