Feature implements IFeature { @Override public String getName() { return this.name; } Feature(final String name, final IFilesystemTracker filesystemTracker, final BlockingQueue<ExecutionPair> queue); @Override void requireFile(final String fileName); @Override void whenPresent(final IAction<Collection<IPath>> action); @Override void listen(); @Override String getName();  }
@Test public void Should_getNameReturnNameGivenOnInitialization() throws Exception { Feature feature = new Feature("bug", filesystemTrackerMock, queue); assertEquals("bug", feature.getName()); }