@Test
public void illegalConstructorArg() {

    Arrays.asList(
            "C:\\docker_engine",
            "\\tmp\\docker_engine",
            "\\docker_engine",
            "\\\\host\\share\\docker_engine",
            "\\.\\pipe\\docker_engine",
            "\\\\.\\pipe\\docker_engine\\"
    ).forEach(location -> assertThatExceptionOfType(IllegalArgumentException.class)
            .isThrownBy(() -> NPipeSocketAddress.fromPath(Paths.get(location)))
    );
    assertThatExceptionOfType(NullPointerException.class)
            .isThrownBy(() -> NPipeSocketAddress.fromPath(null));
}