private <T> void setupInboundConverter(Object input, Class<? extends T> expected, T output) { when(converter.toJava(input, (Type) expected)).thenReturn(output); }
private void setupOutboundConverter(Object input, Object output) { when(converter.fromJava(input)).thenReturn(output); }