FeatureLoader implements IFeatureLoader { @Override public IFeatureStatus getFeatureStatus(final String featureId) { return getFeatureStatus0(featureId); } FeatureLoader(); @Override IFeatureStatus loadGroup(final IPath groupPath); @Override IFeatureStatus loadFeature(final IPath featurePath); @Override IFeatureStatus getFeatureStatus(final String featureId);  }
@Test public void Should_getFeatureStatusNotCreateDuplicateStatuses() throws Exception { FeatureLoader featureLoader = new FeatureLoader(); IFeatureStatus status1 = featureLoader.getFeatureStatus("some feature"); IFeatureStatus status2 = featureLoader.getFeatureStatus("some feature"); assertSame(featureStatusMock1, status1); assertSame(featureStatusMock1, status2); }