@Test
public void validatePermisionTest() throws SQLException {

    LoginUser user = LoginUser.builder().id(1L).build();
    DataBaseInfo groupDb = DataBaseInfo.builder().group_name("name").build();
    Errors errors = new BeanPropertyBindingResult(groupDb, "groupDb", true, 256);
    Assert.assertTrue(databaseService.validatePermision(user, errors).validate().isValid());
}