}
public static class TestFileSender extends ComponentVerticle {
@Override
public void start() {
FileSender sender = new FileSender(output.port("out"));
sender.sendFile("src/test/resources/test.txt", new Handler<AsyncResult<Void>>() {
@Override
public void handle(AsyncResult<Void> result) {
assertTrue(result.succeeded());
}
});