### Question:
PrepareBlockchain { public boolean verifyContractFile(File contractFile, ContractVersion contractVersion) { try (InputStream is = new FileInputStream(contractFile)) { byte[] contractBinary = IOUtils.toByteArray(is); ContractVersion checkVersion = ContractVersion.of(contractBinary); return contractVersion.toString().equals(checkVersion.toString()); } catch (IOException e) { log.warn(e.getMessage()); } return false; } PrepareBlockchain(String contractPath); File loadContractFile(ContractVersion version); boolean verifyContractFile(File contractFile, ContractVersion contractVersion);  }### Answer:
@Test public void verifyContractFile() { PrepareBlockchain pb = new PrepareBlockchain(new DefaultConfig().getContractPath()); URL contractFile = getClass().getClassLoader() .getResource("contracts/74df17611373672371cb3872e8a5d4a2e8733fb1.jar"); String file = contractFile.getFile(); log.debug(file); File f = new File(file); ContractVersion version = ContractVersion.of("74df17611373672371cb3872e8a5d4a2e8733fb1"); boolean verify = pb.verifyContractFile(f, version); assert verify == true; }