}
@Test(expected = ResolverException.class)
public void cannotResolveTransformerWithSameLengthAndSameWeightAndSameName() throws ResolverException
{
Converter xmlToInputStream1 = new MockConverterBuilder().named("xmlToInputStream").from(XML_DATA_TYPE).to(INPUT_STREAM_DATA_TYPE).weighting(1).build();
Converter xmlToInputStream2 = new MockConverterBuilder().named("xmlToInputStream").from(XML_DATA_TYPE).to(INPUT_STREAM_DATA_TYPE).weighting(1).build();
graphResolver.transformerChange(xmlToInputStream1, TransformerResolver.RegistryAction.ADDED);
graphResolver.transformerChange(xmlToInputStream2, TransformerResolver.RegistryAction.ADDED);
graphResolver.resolve(XML_DATA_TYPE, INPUT_STREAM_DATA_TYPE);