@Test
public void loadAccounts_JsonException_LoadAccountException() throws Exception {

    Store mockStore = mock(Store.class);
    when(mockStore.getString(anyString()))
            .thenReturn(KeyStoreImpl.ENCRYPTION_VERSION_NAME)
            .thenReturn("not a real json");
    KeyStoreImpl keyStore = new KeyStoreImpl(mockStore, new FakeBackupRestore());
    expectedEx.expect(LoadAccountException.class);
    expectedEx.expectCause(isA(JSONException.class));
    keyStore.loadAccounts();
}