SoapMessage implements Message { @Override public String resolveName(final ParameterList parameters) { return soapMessageNameResolver.resolve(entity, parameters); } SoapMessage(final WilmaHttpEntity entity, final Converter converter); @Override String resolveName(final ParameterList parameters); @Override String convert(final String name);  }
@Test public void testResolveNameShouldReturnWhatSoapMessageNameResolverReturns() { given(soapMessageNameResolver.resolve(entity, parameters)).willReturn("name"); String result = underTest.resolveName(parameters); assertEquals("name", result); }