### Question:
BooleanFieldDataProvider implements FieldDataProvider<OUTPUT_TYPE, Boolean> { @Override public Boolean generate(OUTPUT_TYPE instance) { return mRandom.nextBoolean(); } BooleanFieldDataProvider(Random pRandom); @Override Boolean generate(OUTPUT_TYPE instance);  }### Answer:
@Test public void givenFalseRandomValueWhenGenerateThenReturnsFalse() { given(mRandom.nextBoolean()).willReturn(false); Boolean result = mCut.generate(null); assertEquals(false, result); }
@Test public void givenTrueRandomValueWhenGenerateThenReturnsTrue() { given(mRandom.nextBoolean()).willReturn(true); Boolean result = mCut.generate(null); assertEquals(true, result); }