@Test
public void test_translateCollections_derivedComponents() throws Exception{

    GenericQueryResults.Builder builder = GenericQueryResults.Builder.create();
    List<DerivedComponentBo> results = new ArrayList<DerivedComponentBo>();
    results.add(derivedComponentBo);
    builder.setResults(results);
    List<Component> components = componentService.translateCollections(null, builder.build());
    assert components != null;
    assert components.size() == 1;
    assertTrue("Component fetched correctly",
            StringUtils.equals(components.get(0).getCode(),derivedComponent.getCode()));
    assertImmutableList(components);
}