### Question:
ConfigAssignRequestPnf { @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(configAssignPropertiesForPnf.toString()); sb.append('}'); sb.append('}'); return sb.toString(); }  String getResolutionKey(); void setResolutionKey(String resolutionKey); ConfigAssignPropertiesForPnf getConfigAssignPropertiesForPnf(); void setConfigAssignPropertiesForPnf(ConfigAssignPropertiesForPnf configAssignPropertiesForPnf); @Override String toString();  }### Answer:
@Test public void testtoString() { userParam.put("Instance1", "instance1value"); configAssignPropertiesForPnf.setPnfCustomizationUuid("pnf-customization-uuid"); configAssignPropertiesForPnf.setPnfId("pnf-id"); configAssignPropertiesForPnf.setPnfName("pnf-name"); configAssignPropertiesForPnf.setServiceInstanceId("service-instance-id"); configAssignPropertiesForPnf.setServiceModelUuid("service-model-uuid"); configAssignPropertiesForPnf.setUserParam("user_params", userParam); configAssignRequestPnf.setConfigAssignPropertiesForPnf(configAssignPropertiesForPnf); final StringBuilder sb = new StringBuilder("{\"config-assign-request\":{"); sb.append("\"resolution-key\":").append("\"").append(resolutionKey).append("\""); sb.append(", \"config-assign-properties\":").append(configAssignPropertiesForPnf.toString()); sb.append('}'); sb.append('}'); String Expexted = sb.toString(); assertEquals(Expexted, configAssignRequestPnf.toString()); }