CustomAttributeMatcherClassNameConvert { public static String getClassName(String classPathParameter) { String[] allElements = classPathParameter.split(REGEXKEY); if (allElements.length > 0) { return allElements[allElements.length - 1]; } else { return classPathParameter; } } private  CustomAttributeMatcherClassNameConvert(); static String getClassName(String classPathParameter); static String getClassNameAndAddQuot(String classPathParameter); static URL[] changeJarPathToURLArray(String concatenatedPaths); static final String REGEXKEY; static final char QUOTE; }
@Test public void testGetClassName() { String className = CustomAttributeMatcherClassNameConvert.getClassName(classPath); assertEquals("testCustomMatcher.myCustomMatcher", className); }