final String qualifiedClassName = Matter.class.getCanonicalName();
scope.setQualifiedClassName(qualifiedClassName);
scope.setTypeId(type.getId());
getBoSvc().save(scope);
type.refresh();
ScopedKeyValue scoped = (ScopedKeyValue)type;
assertNotNull("scope should not be null", scoped.getScope());
assertFalse("scope should not be empty", scoped.getScope().isEmpty());
assertEquals("qualified class name differs", qualifiedClassName, scoped.getScope().get(0).getQualifiedClassName());
// insert boolean to indicate that a scope has been set, to be used at the delete section below