// This test doesn't actually do anything with the input stream, but it is important that it
// open/close the stream to simulate actual usage. The reported defect is only exposed if you
// call open/close in some fashion.
try (InputStream classStream = finder.open()) {
scannedEntryCount++;
}
}
assertThat("Failed to enumerate all contents of javax.ws.rs-api.", scannedEntryCount, equalTo(actualEntries));