@Test
public void test_getActiveComponentsByNamespaceCode_exists() throws Exception{

    ArgumentCaptor<QueryByCriteria> argument = setupDataObjectServiceFetchComponent();
    List <Component> components = getComponentService().getActiveComponentsByNamespaceCode(NAMESPACE_CODE);
    QueryByCriteria queryByCriteria = argument.getValue();
    assertTrue("Active passed as criteria for findMatching",StringUtils.contains(queryByCriteria.toString(),
            "active, true"));
    assertTrue("getActiveComponentsByNamespaceCode retrieved correctly", components != null && components.size() == 1);
    assertTrue("Component was returned", StringUtils.equals(component.getCode(), components.get(0).getCode()));
    assertImmutableList(components);
    verify(dataObjectService,times(1)).findMatching(Matchers.argThat(
            new ClassOrSubclassMatcher<ComponentBo>(ComponentBo.class)), any(QueryByCriteria.class));
}