assertTrue(ar.succeeded());
client.connect(1234, "localhost", result -> {
assertTrue(result.succeeded());
NetSocket socket = result.result();
try {
socket.sendFile(fDir.getAbsolutePath().toString());
// should throw exception and never hit the assert
fail("Should throw exception");
} catch (IllegalArgumentException e) {
testComplete();
}