NPipeSocket extends Socket { @Override public SocketAddress getLocalSocketAddress() { return null; } NPipeSocket(); private  NPipeSocket(NPipeSocketImpl impl); @Override void bind(SocketAddress bindpoint); @Override boolean isConnected(); @Override boolean isBound(); @Override SocketAddress getLocalSocketAddress(); @Override void connect(SocketAddress endpoint, int timeout); @Override synchronized void close(); @Override boolean isClosed();  }
@Test public void getLocalSocketAddress() throws IOException { assertThat(new NPipeSocket().getLocalSocketAddress()).isNull(); }