Hi
To reproduce this problem (for ObjectFactory.class)
you may generate the sample bindings using a sample xsd .
you can find the sample listings.xsd here
http://pastebin.com/m32ac1dbc
I generated the bindings using XJC compiler available in jdk1.6
http://java.sun.com/javase/6/docs/technotes/tools/share/xjc.htmlBasically My use case is that i cannot give individual classes in context path (as there are too many)
JAXBContext.
newInstance(contextPath)
rather we just give the pkg name where hundreds of classes are located. But i am not able to use both @PowerMockIgnore and @PrepareForTest at the same time.
I tried using the other method JAXBContext.
newInstance(contextPath,classLoader) where classLoader is Thread.currentThread().getContextClassLoader() but still unable to fix this.
Regards
Srikanth