@Test
public void testGetPrivateKeyAsHex() throws Exception {

    ECKey key = ECKey.fromPrivate(BigInteger.TEN).decompress(); // An example private key.
    assertEquals("000000000000000000000000000000000000000000000000000000000000000a", key.getPrivateKeyAsHex());
}