### Question:
ActiveDirectorySearchCriteriaBuilderImpl extends SearchCriteriaBuilder { @Override public void translateFields() { List<Field> fields = getQueryRequest().getRequestedFields(); for (Iterator<Field> i = fields.iterator(); i.hasNext(); ) { Field field = i.next(); translateField(field); } translatedRequestedFields = fields; }  @Override void translateFields(); @Override void translateSortKeys(); @Override void translateFilter(); @Override String translateField(FieldInfo field); @Override SearchCriteria get();  }### Answer:
@Test public void testTranslateFields() { Field field = new Field(); field.setType(FieldType.FIRST_NAME); Field field2 = new Field(); field2.setType(FieldType.CITY); List<Field> fields = new ArrayList<>(); fields.add(field); fields.add(field2); when(queryRequest.getRequestedFields()).thenReturn(fields); activeDirectorySearchCriteriaBuilder.translateFields(); SearchCriteria searchCriteria = activeDirectorySearchCriteriaBuilder.get(); assertTrue(searchCriteria.getRequestedFields().get(0).getName().equals("givenName")); assertTrue(searchCriteria.getRequestedFields().get(1).getName().equals("l")); }