when(random.nextInt(2)).thenReturn(0);
SelectRandomly selectRandomly = new SelectRandomly();
selectRandomly.setRandom(random);
assertThat(selectRandomly.selectSolution(Arrays.asList(sol1,sol2)), is(sol1));
}
@Test
public void whenHavingNoSolutions_returnNull(){
Random random = mock(Random.class);