### Question:
BtcNodeConverter { @Nullable PeerAddress convertClearNode(BtcNode node) { int port = node.getPort(); PeerAddress result = create(node.getHostNameOrAddress(), port); if (result == null) { String address = node.getAddress(); if (address != null) { result = create(address, port); } else { log.warn("Lookup failed, no address for node {}", node); } } return result; } BtcNodeConverter();   BtcNodeConverter(Facade facade);   }### Answer:
@Test public void testConvertClearNode() { final String ip = "192.168.0.1"; BtcNode node = mock(BtcNode.class); when(node.getHostNameOrAddress()).thenReturn(ip); PeerAddress peerAddress = new BtcNodeConverter().convertClearNode(node); InetAddress inetAddress = peerAddress.getAddr(); assertEquals(ip, inetAddress.getHostName()); }