### Question:
TcpIpSegmentationResolver implements IgSegmentationResolver { public boolean isValidSegment() throws IgSegmentationException { if (!initialized) this.validateProperties(); try { endpointCommunicator = new Socket(); endpointCommunicator.bind(bindPointAddress); endpointCommunicator.connect(endPointAddress, this.socketTimeout); } catch (IOException e) { throw new IgSegmentationException("Failed to check tcp reachability: " + this.targetNodeAddress.toString(), e); } finally { U.closeQuiet(endpointCommunicator); } return true; }  boolean isValidSegment(); TcpIpSegmentationResolver setSocketTimeout(int socketTimeout); TcpIpSegmentationResolver setTargetNodeAddress(InetAddress targetNodeAddress); TcpIpSegmentationResolver setTargetNodeName(String targetNodeName); TcpIpSegmentationResolver setTargetNodePort(int targetNodePort); TcpIpSegmentationResolver setLocalNodeAddress(InetAddress localNodeAddress); TcpIpSegmentationResolver setLocalNodeName(String localNodeName); TcpIpSegmentationResolver setLocalNodePort(int localNodePort); String toString();  }### Answer:
@Test(expected = NullPointerException.class) public void test_resolver_without_local_node_address() throws IgSegmentationException { resolver.isValidSegment(); }