HttpWarmer implements Warmer { @Override public void next() throws Exception { doNext(); } HttpWarmer(); @SuppressWarnings("unchecked") @Override void init(final Map<String, Object> params); @Override void next();  }
@Test(expectedExceptions = UnknownHostException.class) public void testNext() throws Exception { final Warmer warmer = new HttpWarmer(); warmer.init(ImmutableMap.of("urls", Collections.singletonList("http: warmer.next(); }