// Path: src/test/java/com/apresa/restflow/samples/transfers/model/Transfer.java
// public class Transfer {
// 	@StateReference
// 	public TransferStatus status = TransferStatus.INITIAL;
// 
// 	public Float amount;
// 	public String src;
// 	public String target;
// 	public String otpHash;
// }


import com.apresa.restflow.samples.transfers.model.Transfer;
package com.apresa.restflow.samples.transfers.support;



public class Utils {

	public static String hashOTP(String otp) {
		return Integer.toString(otp.hashCode());
	}

	public static boolean checkValidSignature(Transfer transfer,
			String signature) {

		return signature.equals("SIGNATURE");
	}

	public static void addOTP(Transfer transfer) {
		transfer.otpHash = hashOTP("OTP");
	}

// Path: src/test/java/com/apresa/restflow/samples/transfers/model/Transfer.java
// public class Transfer {
// 	@StateReference
// 	public TransferStatus status = TransferStatus.INITIAL;
// 
// 	public Float amount;
// 	public String src;
// 	public String target;
// 	public String otpHash;
// }


// Path: src/test/java/com/apresa/restflow/samples/transfers/support/Utils.java
import com.apresa.restflow.samples.transfers.model.Transfer;

package com.apresa.restflow.samples.transfers.support;



public class Utils {

	public static String hashOTP(String otp) {
		return Integer.toString(otp.hashCode());
	}

	public static boolean checkValidSignature(Transfer transfer,
			String signature) {

		return signature.equals("SIGNATURE");
	}

	public static void addOTP(Transfer transfer) {
		transfer.otpHash = hashOTP("OTP");
	}

	public static boolean checkValidData(Transfer transfer) {