### Question:
NamingRequestObjectBuilder { public NameGenRequest nameGenRequestMapper(List<Element> elements) { NameGenRequest nameGenRequest = new NameGenRequest(); nameGenRequest.setElements(elements); return nameGenRequest; }  Element elementMapper(String instanceGroupId, String policyInstanceName, String namingType,
            String nfNamingCode, String instanceGroupName); Deleteelement deleteElementMapper(String instanceGroupId); NameGenRequest nameGenRequestMapper(List<Element> elements); NameGenDeleteRequest nameGenDeleteRequestMapper(List<Deleteelement> deleteElements);  }### Answer:
@Test public void nameGenRequestMapper() { NameGenRequest expected = new NameGenRequest(); List<Element> elements = new ArrayList<>(); Element element = new Element(); element.setExternalKey(instanceGroupId); element.setPolicyInstanceName(policyInstanceName); element.setNamingType(namingType); element.setResourceName(instanceGroupName); element.setNamingIngredientsZeroOrMore(nfNamingCode); elements.add(element); expected.setElements(elements); NameGenRequest actual = mapper.nameGenRequestMapper(elements); assertThat(actual, sameBeanAs(expected)); }