@Override public void initialize(final ValidHost annotation) { this.annotation = annotation; }
@PluginFactory public static HostAndPort createPlugin( @ValidHost(message = "Unit test (host)") @PluginAttribute("host") final String host, @ValidPort(message = "Unit test (port)") @PluginAttribute("port") final int port) { return new HostAndPort(new InetSocketAddress(host, port)); }