### Question:
WalletCreator extends WalletManager { public static void main(String[] args) { new WalletCreator().run(); } WalletCreator();  WalletCreator(IODevice console); static void main(String[] args);  }### Answer:
@Test public void testWalletCreation() { when(console.readPassword(contains("password"))) .thenReturn(WALLET_PASSWORD, WALLET_PASSWORD); when(console.readLine(startsWith("Please enter a destination directory "))) .thenReturn(tempDirPath); WalletCreator.main(console); verify(console).printf(contains("successfully created in")); }