### Question:
NebaViewResolver implements ViewResolver, Ordered { @Override public View resolveViewName(String viewName, Locale locale) { if (viewName == null) { throw new IllegalArgumentException("Method argument viewName must not be null."); } if (viewName.startsWith(REDIRECT_URL_PREFIX)) { String redirectUrl = viewName.substring(REDIRECT_URL_PREFIX.length()); return new SlingRedirectView(redirectUrl, true, true); } if (viewName.startsWith(FORWARD_URL_PREFIX)) { String forwardUrl = viewName.substring(FORWARD_URL_PREFIX.length()); return new InternalResourceView(forwardUrl); } return resolveScriptingView(viewName); } NebaViewResolver(ServletResolver servletResolver); @Override View resolveViewName(String viewName, Locale locale); @Override int getOrder();  }### Answer:
@Test(expected = IllegalArgumentException.class) public void testNullViewNamesAreNotTolerated() { this.testee.resolveViewName(null, ENGLISH); }
@Test public void testNullLocaleIstTolerated() { this.testee.resolveViewName("viewName", null); }