@BeforeClass
    public static void setup() throws Exception {
        // Create a test datasource and bind it to JNDI
        BasicDataSource ds = createInMemoryDatasource();
        InitialContext ctx = TestUtil.initialContext();
        TestUtil.ensureCtx(ctx, "java:comp/env"); //$NON-NLS-1$
        TestUtil.ensureCtx(ctx, "java:comp/env/jdbc"); //$NON-NLS-1$
        ctx.bind("java:comp/env/jdbc/BasicAuthJDBCTest", ds); //$NON-NLS-1$
    }
Unit test.

@author eric.wittmann@redhat.com
gateway/engine/policies/src/test/java/io/apiman/gateway/engine/policies/BasicAuthJDBCTest.java