### Question:
PrivilegeDaoImpl implements PrivilegeDao { @Override public Long getActorbyHistoryActor(Long id) { String sql = "select actor_id from bc_identity_actor_history where id=?"; try { return jdbcTemplate.queryForObject(sql, new Object[]{id}, Long.class); } catch (EmptyResultDataAccessException e) { return null; } }  @Override int addUser(Long roleId, Long userId); @Override long addActorByRole(Long roleId, Long actorId); @Override int deleteActorByRole(Long roleId, Long actorId); @Override//10114209 Long getActorbyHistoryActor(Long id); @Override int ActorRelationIsExist(Long roleId, Long actorId); @Override int deleteResourceByRole(long roleId, long resourceId); @Override int RoleResouceIsExist(long roleId, long resourceId); @Override long addResourceByRole(long roleId, long resourceId); @Override String getRoleNameById(long roleId);  }### Answer:
@Test public void getActorByHistoryActorTest() { Long actorid = privilegeDao.getActorbyHistoryActor(10114209L); System.out.println(actorid); }