### Question:
ExplicitFieldDataProvider implements FieldDataProvider<OUTPUT_TYPE, VALUE_TYPE> { @Override public VALUE_TYPE generate(OUTPUT_TYPE instance) { return mValue; } ExplicitFieldDataProvider(VALUE_TYPE pValue); @Override VALUE_TYPE generate(OUTPUT_TYPE instance);  }### Answer:
@Test public void givenExplicitStringWhenGenerateThenReturnsSameValue() { String EXPECTED_RESULT = "Thou shall not pass!"; ExplicitFieldDataProvider<?, String> cut = new ExplicitFieldDataProvider<>(EXPECTED_RESULT); String result = cut.generate(null); assertEquals(EXPECTED_RESULT, result); }
@Test public void givenExplicitObjectWhenGenerateThenReturnsSameValue() { TestClass EXPECTED_RESULT = new TestClass(); ExplicitFieldDataProvider<?, TestClass> cut = new ExplicitFieldDataProvider<>(EXPECTED_RESULT); TestClass result = cut.generate(null); assertSame(EXPECTED_RESULT, result); }