### Question:
ActorRelationServiceImpl extends DefaultCrudService<ActorRelation> implements ActorRelationService { public List<ActorRelation> findByMaster(Integer type, Long masterId) { return this.actorRelationDao.findByMaster(type, masterId); }  @Autowired void setActorRelationDao(ActorRelationDao actorRelationDao); List<ActorRelation> findByMaster(Integer type, Long masterId); ActorRelation load(Integer type, Long masterId, Long followerId); List<ActorRelation> findByFollower(Integer type, Long followerId);  }### Answer:
@Test public void testFindByMaster() { ActorRelation ar1 = saveOne(); Actor follower2 = createActor(Actor.TYPE_DEPARTMENT, "ftest2"); actorService.save(follower2); Assert.assertNotNull(follower2.getId()); ActorRelation ar2 = createInstance(ar1.getMaster(), follower2, ar1.getType(), "02"); actorRelationService.save(ar2); List<ActorRelation> ars = actorRelationService.findByMaster( ar1.getType(), ar1.getMaster().getId()); Assert.assertNotNull(ars); Assert.assertEquals(2, ars.size()); Assert.assertEquals(ar1, ars.get(0)); Assert.assertEquals(ar2, ars.get(1)); }