@Before
  public void before() throws Exception {
    xMSF = getMSF();
    param = new TestParameters();
    param.put("ServiceFactory", xMSF); // important for param.getMSF()

    assertNotNull("could not create MultiServiceFactory.", xMSF);
    XPropertySet xPropertySet = UnoRuntime.queryInterface(XPropertySet.class, xMSF);
    Object defaultCtx = xPropertySet.getPropertyValue("DefaultContext");
    xContext = UnoRuntime.queryInterface(XComponentContext.class, defaultCtx);
    assertNotNull("could not get component context.", xContext);

    tempDir = util.utils.getOfficeTemp /*Dir*/(xMSF);
    System.out.println("tempdir: " + tempDir);

    foo = URI.create(xContext, "uri:foo");
    assertNotNull("foo", foo);
    bar = URI.create(xContext, "uri:bar");
    assertNotNull("bar", bar);
    baz = URI.create(xContext, "uri:baz");
    assertNotNull("baz", baz);

    blank1 = BlankNode.create(xContext, "_:1");
    assertNotNull("blank1", blank1);
    blank2 = BlankNode.create(xContext, "_:2");
    assertNotNull("blank2", blank2);
    blank3 = BlankNode.create(xContext, "_:3");
    assertNotNull("blank3", blank3);
    blank4 = BlankNode.create(xContext, "_:4");
    assertNotNull("blank4", blank4);
    rdf_type = URI.createKnown(xContext, URIs.RDF_TYPE);
    assertNotNull("rdf_type", rdf_type);
    rdfs_label = URI.createKnown(xContext, URIs.RDFS_LABEL);
    assertNotNull("rdfs_label", rdfs_label);
    pkg_Document = URI.createKnown(xContext, URIs.PKG_DOCUMENT);
    assertNotNull("pkg_Document", pkg_Document);
    pkg_hasPart = URI.createKnown(xContext, URIs.PKG_HASPART);
    assertNotNull("pkg_hasPart", pkg_hasPart);
    pkg_MetadataFile = URI.createKnown(xContext, URIs.PKG_METADATAFILE);
    assertNotNull("pkg_MetadataFile", pkg_MetadataFile);
    odf_ContentFile = URI.createKnown(xContext, URIs.ODF_CONTENTFILE);
    assertNotNull("odf_ContentFile", odf_ContentFile);
    odf_StylesFile = URI.createKnown(xContext, URIs.ODF_STYLESFILE);
    assertNotNull("odf_StylesFile", odf_StylesFile);
    odf_Element = URI.createKnown(xContext, URIs.ODF_ELEMENT);
    assertNotNull("odf_Element", odf_Element);
  }