### Question:
ConfigAssignRequestVnf { @Override public String toString() { final StringBuilder sb = new StringBuilder("{\"config-assign-request\":{"); sb.append("\"resolution-key\":").append("\"").append(resolutionKey).append("\""); sb.append(", \"config-assign-properties\":").append(configAssignPropertiesForVnf.toString()); sb.append('}'); sb.append('}'); return sb.toString(); }  String getResolutionKey(); void setResolutionKey(String resolutionKey); ConfigAssignPropertiesForVnf getConfigAssignPropertiesForVnf(); void setConfigAssignPropertiesForVnf(ConfigAssignPropertiesForVnf configAssignPropertiesForVnf); @Override String toString();  }### Answer:
@Test public void testtoString() { userParam.put("Instance1", "instance1value"); configAssignPropertiesForVnf.setServiceInstanceId("service-instance-id"); configAssignPropertiesForVnf.setServiceModelUuid("service-model-uuid"); configAssignPropertiesForVnf.setUserParam("user_params", userParam); configAssignPropertiesForVnf.setVnfCustomizationUuid("vnf-customization-uuid"); configAssignPropertiesForVnf.setVnfId("vnf-id"); configAssignPropertiesForVnf.setVnfName("vnf-name"); configAssignRequestVnf.setConfigAssignPropertiesForVnf(configAssignPropertiesForVnf); final StringBuilder sb = new StringBuilder("{\"config-assign-request\":{"); sb.append("\"resolution-key\":").append("\"").append(resolutionKey).append("\""); sb.append(", \"config-assign-properties\":").append(configAssignPropertiesForVnf.toString()); sb.append('}'); sb.append('}'); String Expexted = sb.toString(); assertEquals(Expexted, configAssignRequestVnf.toString()); }