private byte[] readBytes(File file) throws IOException {
    int byteCount = (int) file.length();

    byte[] input = new byte[byteCount];

    URL url = file.toURL();
    assertNotNull(url);

    InputStream is = url.openStream();
    assertNotNull(is);

    BufferedInputStream bis = new BufferedInputStream(is);
    int bytesRead = bis.read(input);
    bis.close();

    assertEquals(byteCount, bytesRead);
    return input;
  }
Control which helps verify fix for bug #45377.
geode-core/src/integrationTest/java/org/apache/geode/internal/statistics/StatArchiveWriterReaderIntegrationTest.java