import java.util.Set;
import org.apache.poi.util.Internal;
+import org.apache.poi.util.SuppressForbidden;
import org.mockito.internal.matchers.apachecommons.ReflectionEquals;
/**
* Only use this method in test cases!!!
*/
@SuppressWarnings({"unused", "unchecked"})
+ @SuppressForbidden("For test usage only")
public static <R,T> R getFieldValue(final Class<? super T> clazz, final T instance, final Class<R> fieldType, final String fieldName) {
assertTrue("Reflection of private fields is only allowed for POI classes.", clazz.getName().startsWith("org.apache.poi."));
try {