- try{
- proxy.setTestingDeps(null);
- fail();
- }catch(RuntimeException e) {
- Throwable cause = e.getCause();
- assertNotNull(cause);
- assertTrue("Invalid type " + cause, cause instanceof IllegalArgumentException);
- assertEquals("Null not supported", cause.getMessage());
- }