### Question:
AbstractInvalidateDMOPackageCacheDeleteHelper implements DeleteHelper { @Override public boolean supports( final Path path ) { return resourceType.accept( path ); } AbstractInvalidateDMOPackageCacheDeleteHelper( final T resourceType,
                                                          final Event<InvalidateDMOPackageCacheEvent> invalidateDMOPackageCache ); @Override boolean supports( final Path path ); @Override void postProcess( final Path path );  }### Answer:
@Test public void checkMatchesResourceType() { final Path path = mock(Path.class); when(path.getFileName()).thenReturn("file." + resourceType.getSuffix()); assertTrue(helper.supports(path)); }
@Test public void checkDoesNotMatchOtherResourceTypes() { final Path path = mock(Path.class); when(path.getFileName()).thenReturn("file.smurf"); assertFalse(helper.supports(path)); }