### Question:
EmpiLinkDaoSvc { public EmpiLink newEmpiLink() { return myEmpiLinkFactory.newEmpiLink(); }  @Transactional EmpiLink createOrUpdateLinkEntity(IBaseResource thePerson, IBaseResource theTarget, EmpiMatchOutcome theMatchOutcome, EmpiLinkSourceEnum theLinkSource, @Nullable EmpiTransactionContext theEmpiTransactionContext); @Nonnull EmpiLink getOrCreateEmpiLinkByPersonPidAndTargetPid(Long thePersonPid, Long theResourcePid); Optional<EmpiLink> getLinkByPersonPidAndTargetPid(Long thePersonPid, Long theTargetPid); List<EmpiLink> getEmpiLinksByTargetPidAndMatchResult(Long theTargetPid, EmpiMatchResultEnum theMatchResult); Optional<EmpiLink> getMatchedLinkForTargetPid(Long theTargetPid); Optional<EmpiLink> getMatchedLinkForTarget(IBaseResource theTarget); Optional<EmpiLink> getEmpiLinksByPersonPidTargetPidAndMatchResult(Long thePersonPid, Long theTargetPid, EmpiMatchResultEnum theMatchResult); List<EmpiLink> getPossibleDuplicates(); Optional<EmpiLink> findEmpiLinkByTarget(IBaseResource theTargetResource); @Transactional(propagation = Propagation.REQUIRES_NEW) void deleteLink(EmpiLink theEmpiLink); List<EmpiLink> findEmpiLinksByPerson(IBaseResource thePersonResource); @Transactional List<Long> deleteAllEmpiLinksAndReturnPersonPids(); List<Long> deleteAllEmpiLinksOfTypeAndReturnPersonPids(String theTargetType); EmpiLink save(EmpiLink theEmpiLink); List<EmpiLink> findEmpiLinkByExample(Example<EmpiLink> theExampleLink); List<EmpiLink> findEmpiLinksByTarget(IBaseResource theTargetResource); EmpiLink newEmpiLink();  }### Answer:
@Test public void testNew() { EmpiLink newLink = myEmpiLinkDaoSvc.newEmpiLink(); EmpiRulesJson rules = myEmpiSettings.getEmpiRules(); assertEquals("1", rules.getVersion()); assertEquals(rules.getVersion(), newLink.getVersion()); }