### Question:
AccountingController extends AbstractController implements Initializable { void importIdentity(File file) throws IOException, PersistenceException, URISyntaxException, QblDropInvalidURL, JSONException { String content = readFile(file); Identity i = IdentityExportImport.parseIdentity(content); identityRepository.save(i); }  @Override void initialize(URL location, ResourceBundle resources); void addIdentity();  }### Answer:
@Test public void importIdentityTest() throws IOException, QblStorageException, PersistenceException, EntityNotFoundException, URISyntaxException, QblDropInvalidURL, JSONException { setupExport(); controller.importIdentity(new File(System.class.getResource(TEST_JSON).toURI())); Identities identities = identityRepository.findAll(); assertEquals(2, identities.getIdentities().size()); Identity i = identities.getByKeyIdentifier("1b72b39576ced4ac8e003fae36d96dbda94ab28b2bdaf399719e1402fea9210c"); assertEquals("Test", i.getAlias()); }