### Question:
ByteFieldDataProvider implements FieldDataProvider<OUTPUT_TYPE, Byte> { @Override public Byte generate(OUTPUT_TYPE instance) { mRandom.nextBytes(mByte); return mByte[0]; } ByteFieldDataProvider(Random pRandom); @Override Byte generate(OUTPUT_TYPE instance);  }### Answer:
@Test public void givenRandomByteValueWhenGenerateThenReturnsSameByte() { doAnswer(new Answer() { @Override public Object answer(InvocationOnMock invocation) { ((byte[])invocation.getArgument(0))[0] = 113; return null; } }).when(mRandom).nextBytes(any(byte[].class)); byte result = mCut.generate(null); assertEquals(113, result); }