@Test
public void testUploadFile() throws Exception {

	assertEquals(0, getFiles().size());
	UploadHelper.simulateFileUpload(requestMock, "600x400.png", "image/png");
	fileService.uploadFile();
	assertEquals(1, getFiles().size());
	File file = getFiles().get(0);
	assertEquals(simpleUser.getUserId(), file.getOwners().get(0).getUser().getUserId());
	assertEquals("png", file.getFileType());
	assertEquals(600, file.getWidth());
	assertEquals(400, file.getHeight());
	assertTrue(file.getName().endsWith("600x400"));
	assertTrue(file.getSize() > 0);
}