// wireService.checkCompatibility(source, target, false);
}
@Test
public void testIncompatibleOutputTypes() throws Exception {
InterfaceContract source = new MockContract("FooContract");
DataType sourceType = new DataTypeImpl<Type>(String.class, String.class);
ArrayList sourceTypes = new ArrayList();
sourceTypes.add(sourceType);
DataType sourceOutputType = new DataTypeImpl(Object[].class, sourceTypes);
Operation opSource1 = newOperation("op1");
opSource1.setOutputType(sourceOutputType);
Map<String, Operation> sourceOperations = new HashMap<String, Operation>();
sourceOperations.put("op1", opSource1);
source.getInterface().getOperations().addAll(sourceOperations.values());
InterfaceContract target = new MockContract("FooContract");
DataType targetType = new DataTypeImpl<Type>(Integer.class, Integer.class);
ArrayList targetTypes = new ArrayList();
targetTypes.add(targetType);
DataType targetOutputType = new DataTypeImpl(Object[].class, targetTypes);
Operation opTarget = newOperation("op1");
opTarget.setOutputType(targetOutputType);
Map<String, Operation> targetOperations = new HashMap<String, Operation>();
targetOperations.put("op1", opTarget);
target.getInterface().getOperations().addAll(targetOperations.values());
try {
mapper.checkCompatibility(source, target, Compatibility.SUBSET, false, false);
fail();
} catch (IncompatibleInterfaceContractException e) {
// expected