### Question:
ConstantProvider implements ObjectProvider<T>, Serializable { @Override public T getObject() { return constant; } ConstantProvider(T constant); @Override T getObject();  }### Answer:
@Test public void testGetObject() throws Exception { final String s = "Hello, World!"; final ConstantProvider<String> provider = new ConstantProvider<String>(s); assertSame(s, provider.getObject()); }