public void runRandomWithoutEntityListDirtyAndMinimumCacheType(SelectionCacheType cacheType) {
TestdataSolution workingSolution = new TestdataSolution();
final List<Object> entityList = Arrays.<Object>asList(
new TestdataEntity("e1"), new TestdataEntity("e2"), new TestdataEntity("e3"));
EntityDescriptor entityDescriptor = mock(EntityDescriptor.class);
when(entityDescriptor.extractEntities(workingSolution)).thenReturn(entityList);
InnerScoreDirector scoreDirector = mock(InnerScoreDirector.class);
when(scoreDirector.getWorkingSolution()).thenReturn(workingSolution);
when(scoreDirector.getWorkingEntityListRevision()).thenReturn(7L);
when(scoreDirector.isWorkingEntityListDirty(7L)).thenReturn(false);
FromSolutionEntitySelector entitySelector = new FromSolutionEntitySelector(entityDescriptor, cacheType, true);