@Test
public void testUploadScreenshot() throws Exception {

	Screen screen = screenService.createScreen(new Screen("s1"));
	screen.setKey("k1");
	screen = ScreenDAO.save(screen);
	assertNull(screen.getLastContainerAlive());
	assertEquals(0, new EventHistoryDAO().getCount());
	UploadHelper.simulateFileUpload(requestMock, "600x400.png", "image/png");
	fileService.uploadScreenshot("k1");
	screen = screenService.getScreen(screen.getId(), true, false);
	assertNotNull(screen.getLastContainerAlive());
	assertEquals(1, new EventHistoryDAO().getCount());
	EventHistory event = new EventHistoryDAO().getAll().get(0);
	assertEquals(EventHistory.EventType.ScreenAlive, event.getEventType());
	assertEquals(screen.getId(), event.getEntityId());
	assertNotNull(event.getEventDate());
}