@Test
public void testHandleUnexpectedMethod() {

    DeepThoughtSync sync = SyncClientAdapterHandler.newHandler(DeepThoughtSync.class, Object.class, new Object());
    try {
        sync.answerQuestionOfLifeUniverseAndEverything();
        fail("No exception thrown.");
    } catch (UndeclaredThrowableException e) {
        assertThat(e.getCause()).isInstanceOf(NoSuchMethodException.class);
    }
}