@Test
  public void testGetSimpleDataSource() throws Exception {
    try {
      Context ctx = cache.getJNDIContext();
      GemFireBasicDataSource ds = (GemFireBasicDataSource) ctx.lookup("java:/SimpleDataSource");
      Connection conn = ds.getConnection();
      if (conn == null) {
        fail(
            "DataSourceFactoryTest-testGetSimpleDataSource() Error in creating the GemFireBasicDataSource");
      }
    } catch (Exception e) {
      fail("Exception occurred in testGetSimpleDataSource due to " + e);
      e.printStackTrace();
    }
  }
To change the template for this generated type comment go to Window - Preferences - Java - Code
Generation - Code and Comments
geode-core/src/integrationTest/java/org/apache/geode/internal/datasource/CleanUpJUnitTest.java