### Question:
ListOfValuesResourceConverter extends ResourceConverterImpl<ListOfValues, ClientListOfValues> { @Override protected ClientListOfValues resourceSpecificFieldsToClient(ClientListOfValues client, ListOfValues serverObject, ToClientConversionOptions options) { final ListOfValuesItem[] values = serverObject.getValues(); if(values != null && values.length > 0){ List<ClientListOfValuesItem> clientItems = new ArrayList<ClientListOfValuesItem>(values.length); client.setItems(clientItems); for(ListOfValuesItem currentItem : values){ String currentItemValue = currentItem.getValue().toString(); if (EncryptionEngine.isEncrypted(currentItemValue)) { currentItemValue = null; } clientItems.add(new ClientListOfValuesItem(currentItem.getLabel(), currentItemValue)); } } return client; }    }### Answer:
@Test public void resourceSpecificFieldsToClient() { final String label1 = "testLabel1"; final String value1 = "testValue1"; final String label2 = "testLabel2"; final String value2 = "testValue2"; final ClientListOfValues clientObject = new ClientListOfValues(); final ListOfValues serverObject = new ListOfValuesImpl(); ListOfValuesItemImpl item = new ListOfValuesItemImpl(); item.setLabel(label1); item.setValue(value1); serverObject.addValue(item); item = new ListOfValuesItemImpl(); item.setLabel(label2); item.setValue(value2); serverObject.addValue(item); final ClientListOfValues result = converter.resourceSpecificFieldsToClient(clientObject, serverObject, null); assertNotNull(result); final List<ClientListOfValuesItem> items = result.getItems(); assertNotNull(items); assertTrue(items.size() == 2); for(ClientListOfValuesItem currentItem : items){ if(label1.equals(currentItem.getLabel())){ assertEquals(currentItem.getValue(), value1); } else if(label2.equals(currentItem.getLabel())){ assertEquals(currentItem.getValue(), value2); } else { assertTrue(false); } } }