### Question:
DefaultNodeLinkService implements NodeLinkService, InitializingBean { @Transactional(readOnly=true) public Collection<DataLinkInterface> getLinkContainingNodeId(int nodeId) { OnmsCriteria criteria = new OnmsCriteria(DataLinkInterface.class); criteria.createAlias("node", "node", OnmsCriteria.LEFT_JOIN); criteria.add(Restrictions.or( Restrictions.eq("node.id", nodeId), Restrictions.eq("nodeParentId", nodeId) )); return m_dataLinkDao.findMatching(criteria); }  @Override void afterPropertiesSet(); @Transactional void saveLinkState(OnmsLinkState state); @Transactional void createLink(final int nodeParentId, final int nodeId); @Transactional(readOnly=true) Integer getNodeId(String endPoint); @Transactional(readOnly=true) String getNodeLabel(int nodeId); @Transactional(readOnly=true) Collection<DataLinkInterface> getLinkContainingNodeId(int nodeId); @Transactional(readOnly=true) OnmsLinkState getLinkStateForInterface(DataLinkInterface dataLinkInterface); @Transactional void updateLinkStatus(int nodeParentId, int nodeId, String status); @Transactional(readOnly=true) String getPrimaryAddress(int nodeId); @Transactional(readOnly=true) boolean nodeHasEndPointService(int nodeId); @Transactional(readOnly=true) Boolean getEndPointStatus(int nodeId);  }### Answer:
@Test @Transactional public void dwoTestGetLinkContainingNodeId() { int parentNodeId = END_POINT1_ID; Collection<DataLinkInterface> datalinks = m_nodeLinkService.getLinkContainingNodeId(parentNodeId); assertEquals(3, datalinks.size()); }