title: NPE when calling SDOHelper.createRootDataObject in test
body: <p>We have a service method which succesfully calls the WIM of the WAS. In this method we use the <a href="https://www.ibm.com/support/knowledgecenter/SSEQTP_8.5.5/com.ibm.websphere.javadoc.vmm.doc/vmm/com/ibm/websphere/wim/util/SDOHelper.html" rel="nofollow noreferrer">SDOHelper</a> to create the <code>RootDataObject</code> and the <code>ControlDataObject</code> using the following (like described in the IBM docs):</p>
  
  <pre><code>DataObject root = SDOHelper.createRootDataObject();
  DataObject controller = SDOHelper.createControlDataObject(root, null, SchemaConstants.DO_SEARCH_CONTROL);
  </code></pre>
  
  <p>For the implementing we added the <code>com.ibm.websphere.org.eclipse.emf</code> and <code>org.eclipse.emf.ecore</code> JARs to the class path with provided scope as it's part of the WAS. Our source compiles and works in the live enviroment.</p>
  
  <p>Now I'll try to write test for this method. But I'll get NPE on the line to create the <code>RootDataObject</code></p>
  
  <pre><code>java.lang.NullPointerException
    at org.eclipse.emf.ecore.sdo.util.SDOUtil.create(SDOUtil.java:579)
    at org.eclipse.emf.ecore.sdo.impl.EDataGraphImpl.createRootObject(EDataGraphImpl.java:523)
    at com.ibm.websphere.wim.util.SDOHelper.createRootDataObjectCache(SDOHelper.java:111)
    at com.ibm.websphere.wim.util.SDOHelper.createRootDataObject(SDOHelper.java:124)
  </code></pre>
  
  <p>But I don't know why or how I can avoid it to write a successfull test method</p>
  
  <p>Any suggestions?</p>