@Before public void setUp() throws Exception { BriefLogFormatter.initVerbose(); Context ctx = new Context(params); myWatchedKey = new ECKey(); myWallet = new Wallet(params); myKey = new ECKey(); myKey.setCreationTimeSeconds(123456789L); myWallet.importKey(myKey); myAddress = myKey.toAddress(params); myWallet = new Wallet(params); myWallet.importKey(myKey); mScriptCreationTime = new Date().getTime() / 1000 - 1234; myWallet.addWatchedAddress(myWatchedKey.toAddress(params), mScriptCreationTime); myWallet.setDescription(WALLET_DESCRIPTION); }