@Test
public void shouldReturnDescendantMatchBinding() throws Exception {

    ExceptionHandlerBinding binding = ExceptionHandlerBinding.fromAnnotatedClass(IllegalStateExceptionHandler.class);
    registry = new RestExceptionHandlerRegistry(Sets.newHashSet(binding));
    Optional<ExceptionHandlerBinding> foundBinding = registry.findBindingFor(IllegalComponentStateException.class);
    assertThat(foundBinding).isPresent();
}