// Get the policy name to use for testing the policy type.
String policyName = (String) TYPE_TO_TEST_POLICY.get(name);
// Create the PolicyValueModifier
PolicyValueModifier pvMod =
policyType.createPolicyValueModifier(
new Shell(Display.getDefault()),
SWT.NONE, policyName, deviceRAM);
// The PolicyValueModifier should not be null.
assertNotNull(pvMod);
// The class of the created PolicyValueModifier should be the
// expected class.
assertEquals(TYPE_TO_PVM_CLASS.get(name), pvMod.getClass());
// Check the values of the PolicyValueModifier for selection type.
if (policyType.getName().equals(PolicyType.SELECTION.getName())) {
assertTrue(checkSelectionValues(pvMod));
}