SpreadsheetImportHealthChecker implements HealthChecker<SpreadsheetImportActivity> { public boolean canVisit(Object subject) { return (subject != null && subject instanceof SpreadsheetImportActivity); }  boolean canVisit(Object subject); VisitReport visit(SpreadsheetImportActivity activity, List<Object> ancestors); boolean isTimeConsuming();  }
@Test public void testCanHandle() { assertTrue(healthChecker.canVisit(activity)); assertFalse(healthChecker.canVisit(null)); assertFalse(healthChecker.canVisit("")); }