@Test
public void test_getActiveComponentsByNamespaceCode_not_exists() throws Exception{

    GenericQueryResults.Builder builder = GenericQueryResults.Builder.create();
    when(dataObjectService.findMatching(Matchers.argThat(
            new ClassOrSubclassMatcher<ComponentBo>(ComponentBo.class)), any(QueryByCriteria.class))).thenReturn(
            builder.build());
    List<Component> components = getComponentService().getActiveComponentsByNamespaceCode("blah");
    assertTrue("getActiveComponentsByNamespaceCode retrieved correctly",
                                components != null && components.size() == 0);
    assertImmutableList(components);
}