ValidationWriters implements AutoCloseable { public ValidationWriter getWriter(ValidationType validationType) { return validationWritersMap.get(validationType); } ValidationWriters(String networkId, Set<ValidationType> validationTypes, Path folder, ValidationConfig config); ValidationWriter getWriter(ValidationType validationType); @Override void close();  }
@Test public void getWriter() { usedValidationTypes.forEach(type -> { assertNotNull(validationWriters.getWriter(type)); }); unusedValidationTypes.forEach(type -> { assertNull(validationWriters.getWriter(type)); }); }