### Question:
DefaultNodeLinkService implements NodeLinkService, InitializingBean { @Transactional(readOnly=true) public boolean nodeHasEndPointService(int nodeId) { OnmsMonitoredService endPointService = m_monitoredServiceDao.getPrimaryService(nodeId, m_endPointConfigDao.getValidator().getServiceName()); return endPointService == null ? false : true; }  @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 dwoTestNodeHasEndPointService() { assertFalse(m_nodeLinkService.nodeHasEndPointService(END_POINT1_ID)); final String END_POINT_SERVICE_NAME = "EndPoint"; addPrimaryServiceToNode(END_POINT1_ID, END_POINT_SERVICE_NAME); assertTrue(m_nodeLinkService.nodeHasEndPointService(END_POINT1_ID)); }