### Question:
PathEncoder { @Nonnull private static byte[] decodeBinaryPath(byte[] encoded, int length) { byte[] path = new byte[length]; for (int k = 0; k < length; k++) { int nbyte = k / 8; int offset = k % 8; if (((encoded[nbyte] >> (7 - offset)) & 0x01) != 0) { path[k] = 1; } } return path; } private  PathEncoder();   }### Answer:
@Test public void decodeBinaryPath() { byte[] encoded = new byte[] { 0x60 }; byte[] path = PathEncoder.decode(encoded, 3); Assert.assertNotNull(path); Assert.assertArrayEquals(new byte[] { 0x00, 0x01, 0x01 }, path); }