### Question:
ConfigAssignPropertiesForPnf { @Override public String toString() { final StringBuilder sb = new StringBuilder("{"); sb.append("\"service-instance-id\":").append("\"").append(serviceInstanceId).append("\""); sb.append(", \"pnf-id\":").append("\"").append(pnfId).append("\""); sb.append(", \"pnf-name\":").append("\"").append(pnfName).append("\""); sb.append(", \"service-model-uuid\":").append("\"").append(serviceModelUuid).append("\""); sb.append(", \"pnf-customization-uuid\":").append("\"").append(pnfCustomizationUuid).append("\""); for (Map.Entry<String, Object> entry : userParam.entrySet()) { sb.append(","); sb.append("\""); sb.append(entry.getKey()); sb.append("\""); sb.append(":"); sb.append("\""); sb.append(entry.getValue()); sb.append("\""); } sb.append('}'); return sb.toString(); }  String getServiceInstanceId(); void setServiceInstanceId(String serviceInstanceId); String getPnfId(); void setPnfId(String pnfId); String getPnfName(); void setPnfName(String pnfName); String getServiceModelUuid(); void setServiceModelUuid(String serviceModelUuid); String getPnfCustomizationUuid(); void setPnfCustomizationUuid(String pnfCustomizationUuid); Map<String, Object> getUserParam(); void setUserParam(String name, Object value); @Override String toString();  }### Answer:
@Test public void testtoString() { final StringBuilder sb = new StringBuilder("{"); sb.append("\"service-instance-id\":").append("\"").append(serviceInstanceId).append("\""); sb.append(", \"pnf-id\":").append("\"").append(pnfId).append("\""); sb.append(", \"pnf-name\":").append("\"").append(pnfName).append("\""); sb.append(", \"service-model-uuid\":").append("\"").append(serviceModelUuid).append("\""); sb.append(", \"pnf-customization-uuid\":").append("\"").append(pnfCustomizationUuid).append("\""); for (Map.Entry<String, Object> entry : userParam.entrySet()) { sb.append(","); sb.append("\""); sb.append(entry.getKey()); sb.append("\""); sb.append(":"); sb.append("\""); sb.append(entry.getValue()); sb.append("\""); } sb.append('}'); String Expexted = sb.toString(); assertEquals(Expexted, configAssignPropertiesForPnf.toString()); }