}
}
@Test
public void testInputTypes() throws Exception {
InterfaceContract source = new MockContract("FooContract");
List<DataType> sourceInputTypes = new ArrayList<DataType>();
sourceInputTypes.add(new DataTypeImpl<Type>(Object.class, Object.class));
DataType<List<DataType>> inputType = new DataTypeImpl<List<DataType>>(String.class, sourceInputTypes);
Operation opSource1 = newOperation("op1");
opSource1.setInputType(inputType);
Map<String, Operation> sourceOperations = new HashMap<String, Operation>();
sourceOperations.put("op1", opSource1);
source.getInterface().getOperations().addAll(sourceOperations.values());
InterfaceContract target = new MockContract("FooContract");
List<DataType> targetInputTypes = new ArrayList<DataType>();
targetInputTypes.add(new DataTypeImpl<Type>(Object.class, Object.class));
DataType<List<DataType>> targetInputType = new DataTypeImpl<List<DataType>>(String.class, targetInputTypes);
Operation opTarget = newOperation("op1");
opTarget.setInputType(targetInputType);
Map<String, Operation> targetOperations = new HashMap<String, Operation>();
targetOperations.put("op1", opTarget);
target.getInterface().getOperations().addAll(targetOperations.values());
mapper.checkCompatibility(source, target, Compatibility.SUBSET, false, false);
}