### Question:
Deployment { Deployment withContextPath(String contextPath) { checkNotNull(contextPath,"Context path cannot be null"); checkArgument(contextPath.startsWith("/"),"Context path should start with '/' (%s)",contextPath); this.contextPath=contextPath; return this; } private  Deployment(String contextPath, File temporalDirectory);   }### Answer:
@Test(expected=NullPointerException.class) public void testWithContextPath$nullValue() throws Exception { Deployment.newInstance().withContextPath(null); }
@Test(expected=IllegalArgumentException.class) public void testWithContextPath$invalidArgument() throws Exception { Deployment.newInstance().withContextPath("no slash"); }