policies.put("policyname.field2", "true");
policies.put("policyname.field3", "100");
DefaultDevice device = new DefaultDevice(null, policies, null);
// Create the factory
PolicyValueFactory factory = new DefaultPolicyValueFactory(accessor);
// Call the creation method on the factory
PolicyValue value = factory.createPolicyValue(device, "policyname");
// Check test outcome
assertNotNull("Policy value should exist", value);
assertTrue("Based on test setup expected a StructurePolicyValue",
value instanceof StructurePolicyValue);