@Test
public void test_translateCollections_components() throws Exception{

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