@Test
public void validatePermisionTest() throws SQLException {

    LoginUser user = LoginUser.builder().id(1L).build();
    TaskSql taskSql = TaskSql.builder().id(1L).class_name("name").build();
    Errors errors = new BeanPropertyBindingResult(taskSql, "taskSql", true, 256);
    Assert.assertTrue(selectEntityService.validatePermision(user, taskSql, errors).validate().isValid());
}