### Question:
ResourceName { public static String fromClass(String resourceClassName) { return String.join("-", toList(withoutSuffix(lowerCase(camelHumpsIterator(toSimpleName(resourceClassName))), SUFFIXES))); }  static String fromClass(String resourceClassName);  }### Answer:
@Test void testNameWithoutSuffix() { assertThat(ResourceName.fromClass("SomeEntity")).isEqualTo("some-entity"); }
@Test void testResourceName() { assertThat(ResourceName.fromClass("SomeEntityResource")).isEqualTo("some-entity"); }
@Test void testControllerName() { assertThat(ResourceName.fromClass("SomeEntityController")).isEqualTo("some-entity"); }
@Test void testComplexName() { assertThat(ResourceName.fromClass("com.example.Entity")).isEqualTo("entity"); }