@Test
public void testGetComponentNameFromResource() throws Exception {

    Resource resource = mock(Resource.class);
    when(resource.getResourceType()).thenReturn("/one/twoThree/FourFive");
    String componentName = PerUtil.getComponentNameFromResource(resource);
    logger.info("Component Name: '{}'", componentName);
    assertEquals("Component Name Extraction failed", "one-two-three--four-five", componentName);
}