### Question:
DefinitionsHandler { public void destroy(final BaseIncludedModelActiveRecord includedModel) { NamespaceHandler.removeIncludedNamespace(getNsContext(), includedModel.getNamespace()); } @Inject  DefinitionsHandler(final IncludedModelsPageStateProviderImpl stateProvider,
                              final DMNGraphUtils dmnGraphUtils); void destroy(final BaseIncludedModelActiveRecord includedModel); void create(final BaseIncludedModelActiveRecord includedModel);  }### Answer:
@Test public void testDestroy() { final BaseIncludedModelActiveRecord includedModel = mock(BaseIncludedModelActiveRecord.class); when(includedModel.getNamespace()).thenReturn(namespace); handler.destroy(includedModel); assertEquals(0, nsContext.size()); }