new JDBCDeviceRepositoryAccessor(repository, location);
Connection conn = connection.getConnection();
createTables(conn);
DefaultPolicyDescriptor descriptor =
new DefaultPolicyDescriptor();
descriptor.setCategory("category");
DefaultStructurePolicyType type =
new DefaultStructurePolicyType();
type.addFieldType("f1", new DefaultBooleanPolicyType());
type.addFieldType("f2", new DefaultRangePolicyType(2, 99));
type.complete();
descriptor.setPolicyType(type);
accessor.addPolicyDescriptor(connection, "structure", descriptor);
// Check the database contents
checkCategoryRow(conn, null, 0, "category");
checkPolicyTypeRow(conn, null, "structure", 0, 0);