KeyFormatter formatter = new KeyFormatter (null, Network.PRODUCTION);
JSONArray testData = readObjectArray (WIF);
for ( int i = 0; i < testData.length (); ++i )
{
JSONArray test = testData.getJSONArray (i);
ECKeyPair kp = formatter.parseSerializedKey (test.getString (1));
String address = Address.toSatoshiStyle (Hash.keyHash (kp.getPublic ()), 0x0);
assertTrue (test.getString (0).equals (address));
String serialized = formatter.serializeKey (kp);
assertTrue (test.getString (1).equals (serialized));
}