xxxxxxxxxx
@Test
public void comparisonBytesVsString() throws Exception {
// TODO: To properly test this we need a much larger data set
Address a = Address.fromBase58(mainParams, "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa");
Address b = Address.fromBase58(mainParams, "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa");
int resultBytes = a.compareTo(b);
int resultsString = a.toString().compareTo(b.toString());
assertTrue( resultBytes < 0 );
assertTrue( resultsString < 0 );
}
}