RsJsServices extends AbstractRsJs { String getClassnameFromProxy(Object dataservice) { String ds = dataservice.toString(); return getClassnameFromProxyname(ds); }    }
@Test public void testGetClassnameFromProxy() { System.out.println("getClassnameFromProxy"); Object dataservice = "string"; String expectResult = dataservice.toString(); doReturn(null).when(instance).getClassnameFromProxyname(anyString()); instance.getClassnameFromProxy(dataservice); verify(instance).getClassnameFromProxyname(eq(expectResult)); }