@Override
   public void validate() {
      if (sniHostName == null || sniHostName.isEmpty()) {
         throw new IllegalArgumentException("SNI Host name can not be null");
      }
      if (jdkContext == null) {
         throw new IllegalArgumentException("JDK SSL Context must not be null");
      }
   }
@Test(expected = IllegalArgumentException.class)
    public void shouldValidateSniHostName() throws Exception {
        new SniNettyRouteSource(null, SSLContext.getDefault()).validate();
    }