LambdaServiceFunctionTarget implements Target<T> { @Override public Request apply(RequestTemplate input) { return input.request(); } LambdaServiceFunctionTarget(Class<T> type);  LambdaServiceFunctionTarget(Class<T> type, String name); @Override Class<T> type(); @Override String name(); @Override String url(); @Override Request apply(RequestTemplate input); @Override @SuppressWarnings("rawtypes") boolean equals(final Object other); @Override int hashCode(); @Override String toString();  }
@Test public void apply_RequestTemplateGiven_ShouldInvokeRequestAndNothingElse() { Target<ApiInterface1> target = new LambdaServiceFunctionTarget<>(ApiInterface1.class); RequestTemplate tmpl = mock(RequestTemplate.class); target.apply(tmpl); verify(tmpl, times(1)).request(); verifyNoMoreInteractions(tmpl); }