### Question:
NameUtil { public static String computeValidContainerName(String organization, String space, String serviceName) { String properOrganization = organization.toUpperCase(Locale.US) .replaceAll(NameRequirements.CONTAINER_NAME_ILLEGAL_CHARACTERS, "_"); String properSpace = space.toUpperCase(Locale.US) .replaceAll(NameRequirements.CONTAINER_NAME_ILLEGAL_CHARACTERS, "_"); String properServiceName = serviceName.toUpperCase(Locale.US) .replaceAll(NameRequirements.CONTAINER_NAME_ILLEGAL_CHARACTERS, "_"); return getNameWithProperLength(String.format("%s_%s_%s", properOrganization, properSpace, properServiceName), NameRequirements.CONTAINER_NAME_MAX_LENGTH).toUpperCase(Locale.US); } private  NameUtil(); static String computeValidApplicationName(String applicationName, String namespace, boolean applyNamespace); static String computeValidServiceName(String serviceName, String namespace, boolean applyNamespace); static String computeValidContainerName(String organization, String space, String serviceName); static String computeValidXsAppName(String serviceName); static String getNameWithProperLength(String name, int maxLength); static String getNamespacePrefix(String namespace); static UUID getUUID(String name); static String getIndexedName(String resourceName, int index, int entriesCnt, String delimiter); static String getApplicationName(Module module); static String getServiceName(Resource resource);  }### Answer:
@Test void testCreateValidContainerName() { String containerName = NameUtil.computeValidContainerName("initial", "initial", "com.sap.cloud.lm.sl.xs2.a.very.very.long.service.name.with.illegal.container.name.characters"); assertEquals("INITIAL_INITIAL_COM_SAP_CLOUD_LM_SL_XS2_A_VERY_VERY_LONG3AC0B612", containerName); assertTrue(containerName.matches(NameRequirements.CONTAINER_NAME_PATTERN)); }