}
@Test(expected=IllegalStateException.class)
public void whenRandomIsNull_throwException(){
SearchStrategyManager managerUnderTest = new SearchStrategyManager();
SearchStrategy mockedStrategy1 = mock(SearchStrategy.class);
SearchStrategy mockedStrategy2 = mock(SearchStrategy.class);
managerUnderTest.addStrategy(mockedStrategy1, 0.2);
managerUnderTest.addStrategy(mockedStrategy2, 0.8);
Random mockedRandom = null;
managerUnderTest.setRandom(mockedRandom);