### Question:
InitialContextSetup implements InitialContextFactory { public static void configure(String resourceUri) { String path = getPath(resourceUri); configure(new File(path)); }  static String envDataSourceName(); @Override Context getInitialContext(Hashtable<?, ?> environment); static void bind(String name, Object obj); static void unregister(); static void configure(String resourceUri); static void configure(File file);  }### Answer:
@Test public void testSetupWithResource() throws NamingException { InitialContextSetup.configure("configuration/jetty-env-test.xml"); assertInitialContextHasDataSource(); }
@Test public void testSetupWithFile() throws NamingException, IOException { InitialContextSetup.configure(getFile()); assertInitialContextHasDataSource(); }