PermissionService { public boolean isGroupManagerById(Long groupId, Long userId) throws SQLException { if (null == userId || null == groupId) { return false; } return permissionDao.isGroupManagerById(groupId, userId); }  boolean isSuperManagerById(Long id); boolean isSuperManagerByUserNo(String userNo); boolean isNormalSuperManagerById(Long userId); boolean isManagerById(Long id); boolean isGroupManagerById(Long groupId, Long userId); boolean isNormalManagerById(Long groupId, Long userId); boolean isProjectPermission(Long projectId, Long userId);  }
@Test public void isGroupManagerByIdTest() throws Exception { Assert.assertTrue(permissionService.isGroupManagerById(1L, 1L)); }