Wallet { public void load() throws IOException, SAXException, ParserConfigurationException { String dir = System.getProperty("user.dir"); String fileName = dir + "/wallet.xml"; DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder dBuilder = dbFactory.newDocumentBuilder(); Document doc = dBuilder.parse(fileName); Node walletNode = doc.getElementsByTagName("wallet").item(0); String high = walletNode.getAttributes().getNamedItem("high").getTextContent(); this.setHigh(Long.parseLong(high)); NodeList rowNodes = walletNode.getChildNodes(); for (int i = 0; i < rowNodes.getLength(); ++i ) { Node rowNode = rowNodes.item(i); Node addrNode = rowNode.getChildNodes().item(0); Node privNode = rowNode.getChildNodes().item(1); Node valueNode = rowNode.getChildNodes().item(2); } }  void addNewAccount(); void importKey(byte[] privKey); void addListener(WalletListener walletListener); Collection<Account> getAccountCollection(); AccountState getAccountState(byte[] addressBytes); BigInteger getBalance(byte[] addressBytes); BigInteger totalBalance(); WalletTransaction addByWalletTransaction(Transaction transaction); WalletTransaction addTransaction(Transaction transaction); void addTransactions(List<Transaction> transactions); void removeTransactions(List<Transaction> transactions); void removeTransaction(Transaction transaction); void applyTransaction(Transaction transaction); void processBlock(Block block); void load(); void save(); long getHigh(); void setHigh(long high);  }
@Test @Ignore public void testLoad1() throws TransformerException, ParserConfigurationException, IOException, SAXException { Wallet wallet = new Wallet(); wallet.load(); }