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

    byte[] input = new byte[byteCount];

    URL url = file.toURL();
    assertThat(url).isNotNull();

    InputStream is = url.openStream();
    assertThat(is).isNotNull();

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

    assertThat(bytesRead).isEqualTo(byteCount);
    return input;
  }
final File expectedStatArchiveFile = new File(TestUtil.getResourcePath(getClass(),
"StatArchiveWriterReaderJUnitTest_" + this.testName.getMethodName() + "_expected.gfs"));
geode-junit/src/main/java/org/apache/geode/internal/statistics/StatUtils.java