LinkedSpecificationItem { public List<LinkedSpecificationItem> getLinksByStatus(final LinkStatus status) { final List<LinkedSpecificationItem> linksWithStatus = this.links.get(status); return (linksWithStatus == null) ? Collections.emptyList() : linksWithStatus; } LinkedSpecificationItem(final SpecificationItem item); SpecificationItemId getId(); String getTitle(); String getTitleWithFallback(); ItemStatus getStatus(); String getDescription(); Location getLocation(); List<String> getTags(); SpecificationItem getItem(); void addLinkToItemWithStatus(final LinkedSpecificationItem item, final LinkStatus status); Map<LinkStatus, List<LinkedSpecificationItem>> getLinks(); List<LinkedSpecificationItem> getLinksByStatus(final LinkStatus status); List<TracedLink> getTracedLinks(); List<SpecificationItemId> getCoveredIds(); List<String> getNeedsArtifactTypes(); void addCoveredArtifactType(final String artifactType); void addOverCoveredArtifactType(final String artifactType); Set<String> getCoveredArtifactTypes(); Set<String> getOverCoveredArtifactTypes(); List<String> getUncoveredArtifactTypes(); boolean isCoveredShallow(); DeepCoverageStatus getDeepCoverageStatus(); boolean isDefect(); boolean hasLinks(); int countOutgoingLinks(); int countOutgoingBadLinks(); int countIncomingLinks(); int countIncomingBadLinks(); int countDuplicateLinks(); boolean hasDuplicates(); String getArtifactType(); String getName(); int getRevision();  }
@Test void testGetLinksForStatus_InitiallyEmpty() { assertThat(this.linkedItem.getLinksByStatus(LinkStatus.AMBIGUOUS), empty()); }