* @author Sam
*/
public class SignableJSONTest extends Assert {
@Test
public void testSimpleSigning() throws JSONException {
EncodedKeyPair p = BaseCryptography.generateKeys();
JSONObject x = new JSONObject("{3:{7:9,c:4,2:5,a:6},1:2,2:3,moves:14,states:21,alpha:'beta'}");
assertFalse(SignableJSON.isSignedJSON(x));
SignableJSON.signJSON(x, p.thePublicKey, p.thePrivateKey);
assertTrue(SignableJSON.isSignedJSON(x));