@Test public void modelWithoutCall() { try { restApi.modelWithoutCall(); fail(); } catch (RuntimeException e) { assertThat(e.getMessage(), is("When checking return type of method RestApi#modelWithoutCall \n" + "class io.victoralbertos.mockery.internal.integration.Model was found. But only Call<T> is supported as method return type.\n" + "To fix it, change the return type to Call<T>.\n")); } }