BusinessQueryManager bqm = rs.getBusinessQueryManager();
blm = rs.getBusinessLifeCycleManager();
Locale locale = Locale.GERMAN;
Concept concept = (Concept) blm.createObject(BusinessLifeCycleManager.CONCEPT);
InternationalString is;
is = getIString(locale, "Apache Scout Concept -- APACHE SCOUT TEST");
concept.setName(is);
is = getIString(locale, "This is the concept for Apache Scout Test");
concept.setDescription(is);
Collection<Concept> concepts = new ArrayList<Concept>();
concepts.add(concept);
BulkResponse br = blm.saveConcepts(concepts);
checkResponse(br);
assertEquals(1, br.getCollection().size());
Key key = (Key) br.getCollection().iterator().next();
Concept concept1 = (Concept) bqm.getRegistryObject(key.getId(), LifeCycleManager.CONCEPT);
System.out.println(concept1.getName().getValue() + " " + concept1.getDescription().getValue());
assertEquals(concept.getName().getValue(locale),
concept1.getName().getValue(locale));
assertEquals(concept.getDescription().getValue(locale),
concept1.getDescription().getValue(locale));
//cleanup
Collection<Key> conceptKeys = new ArrayList<Key>();
conceptKeys.add(concept1.getKey());
blm.deleteOrganizations(conceptKeys);
}