@Test
public void testSetPrivateKey(){

    PrivateKey key = new PrivateKey();
    Assert.assertNull(appState.getPublicKey());
    appState.setPrivateKey(key);
    Assert.assertEquals(key, appState.getPrivateKey());
    Assert.assertNotNull(appState.getPublicKey());
}