### Question:
ConfigDeployRequestPnf { @Override public String toString() { final StringBuilder sb = new StringBuilder("{\"config-deploy-request\":{"); sb.append("\"resolution-key\":").append("\"").append(resolutionKey).append("\""); sb.append(", \"config-deploy-properties\":").append(configDeployPropertiesForPnf.toString()); sb.append('}'); sb.append('}'); return sb.toString(); }  String getResolutionKey(); void setResolutionKey(String resolutionKey); ConfigDeployPropertiesForPnf getConfigDeployPropertiesForPnf(); void setConfigDeployPropertiesForPnf(ConfigDeployPropertiesForPnf configDeployPropertiesForPnf); @Override String toString();  }### Answer:
@Test public void testtoString() { configDeployPropertiesForPnf.setServiceInstanceId("service-instance-id"); configDeployPropertiesForPnf.setServiceModelUuid("service-model-uuid"); configDeployPropertiesForPnf.setPnfCustomizationUuid("pnf-customization-uuid"); configDeployPropertiesForPnf.setPnfId("pnf-id"); configDeployPropertiesForPnf.setPnfName("pnf-name"); configDeployRequestPnf.setConfigDeployPropertiesForPnf(configDeployPropertiesForPnf); final StringBuilder sb = new StringBuilder("{\"config-deploy-request\":{"); sb.append("\"resolution-key\":").append("\"").append(resolutionKey).append("\""); sb.append(", \"config-deploy-properties\":").append(configDeployPropertiesForPnf.toString()); sb.append('}'); sb.append('}'); String Expexted = sb.toString(); assertEquals(Expexted, configDeployRequestPnf.toString()); }