public void combineFailsOnHashMismatch() throws SQLException {
HDocumentUpload upload = mockTwoPartUploadUsingHash("incorrect hash");
InputStream finalPartStream =
new ByteArrayInputStream("ghi".getBytes());
DocumentFileUploadForm uploadForm = new DocumentFileUploadForm();
uploadForm.setFileStream(finalPartStream);
try {
util.combineToTempFileAndDeleteUploadRecord(upload, uploadForm);
} catch (ChunkUploadException e) {
assertThat(e.getStatusCode(), is(CONFLICT));