### Question:
EndpointNaming { public String getPath() { String endpointPath = getName().replaceAll("(.)(\\p{Lu})", "$1-$2").toLowerCase(); return plural(endpointPath); } EndpointNaming(String lang, String input);  EndpointNaming(String input); EndpointNaming action(String action); EndpointNaming transformer(String transformer); EndpointNaming hook(String hook); EndpointNaming pipe(String pipe); EndpointNaming pipeSink(String sink); String getName(); String getPackageName(); String getPath(); String getFilename(); String getTestName(); String getTestFilename(); String getInstance(); String getShieldName(); String getShieldFilename(); String getActionName(); String getActionFilename(); String getTransformerName(); String getTransformerFilename(); String getHookName(); String getHookFilename(); String getPipeName(); String getPipeSinkName(); String getPipeSinkInstance(); String getPipeFilename(); String parsePath(String sourceMain); String whitespaces(String value);  }### Answer:
@Test public void testEndpointPath() { assertEquals("people", new EndpointNaming("Person").getPath()); assertEquals("person-addresses", new EndpointNaming("PersonAddress").getPath()); assertEquals("parents", new EndpointNaming("Parent").getPath()); assertEquals("parent-addresses", new EndpointNaming("ParentAddress").getPath()); assertEquals("children", new EndpointNaming("Child").getPath()); assertEquals("grandchildren", new EndpointNaming("Grandchild").getPath()); }