### Question:
AtmosphereServerHttpExchange extends AbstractServerHttpExchange { @Override public <T> T unwrap(Class<T> clazz) { return AtmosphereResource.class.isAssignableFrom(clazz) ? clazz.cast(resource) : null; } AtmosphereServerHttpExchange(AtmosphereResource resource); @Override String uri(); @Override String method(); @Override Set<String> headerNames(); @SuppressWarnings("unchecked") @Override List<String> headers(String name); @Override T unwrap(Class<T> clazz);  }### Answer:
@Test public void unwrap() { performer.onserver(new Action<ServerHttpExchange>() { @Override public void on(ServerHttpExchange http) { assertThat(http.unwrap(AtmosphereResource.class), instanceOf(AtmosphereResource.class)); performer.start(); } }) .send(); }