### Question:
NestedContextFactory { public static DynamicScopeContext create(final DynamicScopeContext parent) { if (parent == null) { throw new IllegalArgumentException( "Parent context must not be null"); } return (DynamicScopeContext) Proxy.newProxyInstance( NestedContextFactory.class.getClassLoader(), new Class< ? >[] {DynamicScopeContext.class}, new PropertyShadeHandler(parent, SHADED_PROPERTIES)); } private  NestedContextFactory(); static DynamicScopeContext create(final DynamicScopeContext parent);  }### Answer:
@Test(expectedExceptions = IllegalArgumentException.class) public void doesNotAcceptNullParentContext() { NestedContextFactory.create(null); }