public static Credentials loadJsonCredentials(String password, String content)
            throws IOException, CipherException {
        WalletFile walletFile = objectMapper.readValue(content, WalletFile.class);
        return Credentials.create(Wallet.decrypt(password, walletFile));
    }
@Test
    public void testLoadJsonCredentials() throws Exception {
        Credentials credentials =
                WalletUtils.loadJsonCredentials(
                        PASSWORD,
                        convertStreamToString(
                                WalletUtilsTest.class.getResourceAsStream(
                                        "/keyfiles/"
                                                + "UTC--2016-11-03T05-55-06."
                                                + "340672473Z--ef678007d18427e6022059dbc264f27507cd1ffc")));

        assertEquals(credentials, (CREDENTIALS));
    }