@Override
  public void publish(ScannerReportWriter writer) {
    cache.close();
  }
@Test
  public void publish_closes_cache() {
    publisher.publish(scannerReportWriter);
    verify(writeCache).close();
  }