@Test
public void verifyMessage() throws Exception {

    // Test vector generated by Bitcoin-Qt.
    String message = "hello";
    String sigBase64 = "HPygR8+G/HJ0kSp0azMeW6bvzd1tGg0Nx1mCJ/ls5Yh2Z1WgA10Nc/yPbVYU4HbF8Z98vvXFC8iqGTGsdDgqfe4=";
    Address expectedAddress = Address.fromBase58(MainNetParams.get(), "Xt5QmmzX2LaMgt81dcXGHhdf8pAhaVJKUW");
    ECKey key = ECKey.signedMessageToKey(message, sigBase64);
    Address gotAddress = key.toAddress(MainNetParams.get());
    assertEquals(expectedAddress, gotAddress);
}