@Test
  public void testToByteArray() throws IOException {
    final byte[] expected = new byte[] {(byte) 0xCA, (byte) 0xFE, (byte) 0xBA, (byte) 0xBE};
    final byte[] actual = IOUtils.toByteArray(new ByteArrayInputStream(expected));

    assertThat(actual).isNotNull();
    assertThat(actual.length).isEqualTo(expected.length);
    assertThat(actual).isEqualTo(expected);
  }
Gets a fully-qualified path anchored at root.
<p>

@param pathElements a String array containing the elements of the path.
@return a fully-qualified pathname as a String value.
geode-core/src/test/java/org/apache/geode/internal/util/IOUtilsJUnitTest.java