@Test void loadsClientWireFormatters() { registerService(ClientWireFormatterFactory.class, TestClientWireFormatterFactory.class); BusinessParameters parameters = factory.getInstance(PROPERTIES); verify(clientConstructor).accept(any(), context.capture()); assertThat(context.getValue()).isNotNull(); TestClientWireFormatter formatter = context.getValue().getWireFormatter(TestClientWireFormatter.class); assertThat(formatter).isSameAs(TestClientWireFormatterFactory.FORMATTER); }
@Override public BusinessParameters getInstance(Map<String, String> properties) { return getWritableInstance(properties); }
RestBusinessParametersFactory implements BusinessParametersFactory { @Override public BusinessParameters getInstance(Map<String, String> properties) { return getWritableInstance(properties); } }
RestBusinessParametersFactory implements BusinessParametersFactory { @Override public BusinessParameters getInstance(Map<String, String> properties) { return getWritableInstance(properties); }  }
RestBusinessParametersFactory implements BusinessParametersFactory { @Override public BusinessParameters getInstance(Map<String, String> properties) { return getWritableInstance(properties); }  @Override BusinessParameters getInstance(Map<String, String> properties); @Override WritableBusinessParameters getWritableInstance(Map<String, String> properties); }
RestBusinessParametersFactory implements BusinessParametersFactory { @Override public BusinessParameters getInstance(Map<String, String> properties) { return getWritableInstance(properties); }  @Override BusinessParameters getInstance(Map<String, String> properties); @Override WritableBusinessParameters getWritableInstance(Map<String, String> properties); static final Set<String> SUPPORTED_WIREFORMATS; }