### Question:
RandomGeneratorServiceImpl implements RandomGeneratorService { @Override public int generateRandomFactor() { return new Random().nextInt((MAXIMUM_FACTOR - MINIMUM_FACTOR) + 1) + MINIMUM_FACTOR; }  @Override int generateRandomFactor();  }### Answer:
@Test public void generateRandomFactorIsBetweenExpectedLimits() throws Exception { List<Integer> randomFactors = IntStream.range(0, 1000) .map(i -> randomGeneratorServiceImpl.generateRandomFactor()) .boxed().collect(Collectors.toList()); assertThat(randomFactors).containsOnlyElementsOf(IntStream.range(11, 100) .boxed().collect(Collectors.toList())); }