### Question:
ContractTypeConverter { public ContractDefinition getAdaptedContractDefinition(final ContractDefinition contract) { final List<ConstraintDefinition> constraints = contract.getConstraints(); final List<InputDefinition> inputDefinitions = adaptContractInputList(contract.getInputs()); final ContractDefinitionImpl contractDefinition = getContractDefinition(constraints, inputDefinitions); return contractDefinition; } ContractTypeConverter(final String[] datePatterns); Map<String, Serializable> getProcessedInput(final ContractDefinition processContract, final Map<String, Serializable> inputs,
            final long maxSizeForTenant, final long tenantId); void deleteTemporaryFiles(Map<String, Serializable> inputs,
            long tenantId); ContractDefinition getAdaptedContractDefinition(final ContractDefinition contract); static final String[] ISO_8601_DATE_PATTERNS; }### Answer:
@Test public void getAdaptedContractDefinition_should_return_a_converter_contract() throws IOException { final ContractDefinitionImpl processContract = new ContractDefinitionImpl(); final List<InputDefinition> inputDefinitions = new ArrayList<>(); inputDefinitions.add(new InputDefinitionImpl(InputDefinition.FILE_INPUT_FILENAME, Type.TEXT, "Name of the file", false)); inputDefinitions.add(new InputDefinitionImpl(InputDefinition.FILE_INPUT_CONTENT, Type.BYTE_ARRAY, "Content of the file", false)); processContract.addInput(new InputDefinitionImpl("inputFile", "this is a input file", false, Type.FILE, inputDefinitions)); final ContractDefinition adaptedContractDefinition = contractTypeConverter.getAdaptedContractDefinition(processContract); final InputDefinition tempPathFileInputDefinition = adaptedContractDefinition.getInputs().get(0).getInputs().get(1); assertThat(tempPathFileInputDefinition.getType()).isEqualTo(Type.TEXT); assertThat(tempPathFileInputDefinition.getName()).isEqualTo(ContractTypeConverter.FILE_TEMP_PATH); assertThat(tempPathFileInputDefinition.getDescription()).isEqualTo(ContractTypeConverter.TEMP_PATH_DESCRIPTION); }