public static void setInternalStateFromContext(Object classOrInstance, Class<?> context,
			Class<?>... additionalContexts) {
		WhiteboxImpl.setInternalStateFromContext(classOrInstance, context, additionalContexts);
	}
public static void setInternalStateFromContext ( Object classOrInstance , Class < ? > context , Class < ? > ... additionalContexts ) { WhiteboxImpl . setInternalStateFromContext ( classOrInstance , context , additionalContexts ) ; }
Set the values of multiple static fields defined in a context using
reflection. The values in the context will be assigned to values on the
{@code classOrInstance}. This method will traverse the class
hierarchy when searching for the fields. Example usage:
<p>
Given:

<pre>
public class MyContext {
private static String myString = &quot;myString&quot;;
protected static int myInt = 9;
}

public class MyInstance {
private static String myInstanceString;
private static int myInstanceInt;

}
</pre>

then

<pre>
Whitebox.setInternalStateFromContext(MyInstance.class, MyContext.class);
</pre>

will set the static variables of {@code MyInstance} to the values
specified in {@code MyContext}.
<p>
By default the {@link FieldMatchingStrategy#MATCHING} strategy is used
which means that the fields defined in the context but not found in the
<code>classOrInstance</code> are silently ignored.

@param classOrInstance
The object or class whose fields to set.
@param context
The context where the fields are defined.
@param additionalContexts
Optionally more additional contexts.