@Test
public void testSetupEnvironment() {

	Hashtable env = new Hashtable();
	tested.setupEnvironment(env, "cn=John Doe", "pw");
	assertThat(env.get(Context.SECURITY_AUTHENTICATION)).isEqualTo("simple");
	assertThat(env.get(Context.SECURITY_PRINCIPAL)).isEqualTo("cn=John Doe");
	assertThat(env.get(Context.SECURITY_CREDENTIALS)).isEqualTo("pw");
}