@Test
public void test_getAllComponentsByNamespaceCode_with_derived() throws Exception{

    setupDataObjectServiceFetchComponent();
    setupDataObjectServiceFetchDerivedComponent();
    List<Component> components = getComponentService().getAllComponentsByNamespaceCode(NAMESPACE_CODE);
    assertTrue("getAllComponentsByNamespaceCode retrieved correctly",
                                components != null && components.size() == 2);
    assertTrue("Component was returned", StringUtils.equals(component.getCode(), components.get(0).getCode()));
    assertTrue("Component was returned", StringUtils.equals(derivedComponent.getCode(),
                            components.get(1).getCode()));
    assertImmutableList(components);
}