whenGetSaveTimes(project, metadata); //5 minute difference
registerProject(project, metadata);
//add a second project to the cache
Project project2 = spy(new ProjectStub(2));
ProjectMetadata metadata2 = mock(ProjectMetadata.class);
whenGetSaveTimes(project2, metadata2, 10); //not modified since the last save but within 30 seconds flush limit
registerProject(project2, metadata2);
//check that the two projects are not the same
Assert.assertFalse(project.id == project2.id);