### Question:
LegalNames { public static String toClusterServiceName(String domainUid, String clusterName) { return toDns1123LegalName(String.format(CLUSTER_SERVICE_PATTERN, domainUid, clusterName)); }  static String toServerServiceName(String domainUid, String serverName); static String toEventName(String domainUid, String serverName); static String toPodName(String domainUid, String serverName); static String toClusterServiceName(String domainUid, String clusterName); static String toJobIntrospectorName(String domainUid); static String toExternalServiceName(String domainUid, String serverName); static String toDns1123LegalName(String value); static boolean isDns1123Required(String fieldName); static final String DOMAIN_INTROSPECTOR_JOB_SUFFIX; static final String DNS_1123_FIELDS_PARAM; }### Answer:
@Test public void createValidClusterServiceNames() throws Exception { assertThat(toClusterServiceName("abc", "cls1"), equalTo("abc-cluster-cls1")); assertThat(toClusterServiceName("Abc", "cLs1"), equalTo("abc-cluster-cls1")); assertThat(toClusterServiceName("Abc", "cls_1"), equalTo("abc-cluster-cls-1")); }