RsJsServices extends AbstractRsJs { String getClassnameFromProxyname(String proxyname) { Pattern pattern = Pattern.compile("[@$]"); Matcher matcher = pattern.matcher(proxyname); matcher.find(); matcher.start(); return proxyname.substring(0, matcher.start()); }    }
@Test public void testGetClassnameFromProxyname() { System.out.println("getClassnameFromProxyname"); String result = instance.getClassnameFromProxyname("a.b.c.Class@abc"); assertThat(result).isEqualTo("a.b.c.Class"); }