XPermMapService extends XPermMapServiceBase<XXPermMap, VXPermMap> { public String getGroupName(Long groupId){ if(groupId!=null && groupId!=0){ VXGroup vXGroup = xGroupService.readResource(groupId); return vXGroup.getName(); } else return null; } XPermMapService(); @Override VXPermMap populateViewBean(XXPermMap xXPermMap); String getGroupName(Long groupId); String getUserName(Long userId); List<XXTrxLog> getTransactionLog(VXPermMap vXPermMap, String action); List<XXTrxLog> getTransactionLog(VXPermMap vObj, VXPermMap mObj, String action);  }
@Test public void test1GetGroupName() { Mockito.when(xGroupService.readResource(1L)).thenReturn(vXGroup); xPermMapService.getGroupName(1L); }