### Question:
BtcNodeConverter { @Nullable PeerAddress convertOnionHost(BtcNode node) { String onionAddress = Objects.requireNonNull(node.getOnionAddress()); return new PeerAddress(onionAddress, node.getPort()); } BtcNodeConverter();   BtcNodeConverter(Facade facade);   }### Answer:
@Test public void testConvertOnionHost() throws UnknownHostException { BtcNode node = mock(BtcNode.class); when(node.getOnionAddress()).thenReturn("aaa.onion"); Facade facade = mock(Facade.class); PeerAddress peerAddress = new BtcNodeConverter(facade).convertOnionHost(node); assertEquals(node.getOnionAddress(), peerAddress.getHostname()); }