public abstract void setFile(IUploadFile file);
public boolean getUploadMatch()
{
IUploadFile file = getFile();
String path = file.getFilePath();
InputStream expected = null;
InputStream actual = null;
String baseDir = TestMockApplications.getBaseDirectory() + "/src/test-data/";
try
{
expected = new FileInputStream(baseDir + path);
actual = file.getStream();
//this replaced the previous manual compare which didn't work
//across different platforms
IOUtils.contentEquals(expected, actual);
}