public void testDataManagerCutpoints() throws Exception {
TransactionlessTesting.get().run
(new TestTask() {
@Override
public void run() throws Exception {
final ServiceContext serviceContext = createServiceContext();
loginAsAdmin(serviceContext);
final Element sampleMetadataXml = getSampleMetadataXml();
final UserSession userSession = serviceContext.getUserSession();
final int userIdAsInt = userSession.getUserIdAsInt();
final String mdId = _dataManager.insertMetadata(serviceContext, "iso19139", sampleMetadataXml,
"uuid" + _inc.incrementAndGet(), userIdAsInt, "2", "source",
MetadataType.METADATA.codeString, null, "maps", new ISODate().getDateAndTime(),
new ISODate().getDateAndTime(), false, false);