- JAXBObjectifier<?> bdfObj = null;
- try {
- bdfObj = new JAXBObjectifier(jumar);
- Object retVal = bdfObj.newInstance();
- Mockito.doThrow(new IllegalAccessException("Test Exception")).when(jumar).newInstance();
-
- } catch (IllegalAccessException e) {
- assertEquals("Test Exception", e.getLocalizedMessage());
- } catch (APIException e) {
- assertTrue(e.getMessage().contains("Test Exception"));
- } catch (InstantiationException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
+ JAXBObjectifier<?> bdfObj = null;
+ try {
+ bdfObj = new JAXBObjectifier(jumar);
+ Object retVal = bdfObj.newInstance();
+ Mockito.doThrow(new IllegalAccessException("Test Exception")).when(jumar).newInstance();
+
+ } catch (IllegalAccessException e) {
+ assertEquals("Test Exception", e.getLocalizedMessage());
+ } catch (APIException e) {
+ assertTrue(e.getMessage().contains("Test Exception"));
+ } catch (InstantiationException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }