builder.addEnvEntry("double", Double.class.getName(), doubleVal.toString(), null);
builder.addEnvEntry("boolean", Boolean.class.getName(), booleanVal.toString(), null);
Context context = EnterpriseNamingContext.createEnterpriseNamingContext(builder.getContext());
Set actual = new HashSet();
for (NamingEnumeration e = context.listBindings("env"); e.hasMore();) {
NameClassPair pair = (NameClassPair) e.next();
actual.add(pair.getName());
}
Set expected = new HashSet(Arrays.asList(new String[]{"string", "char", "byte", "short", "int", "long", "float", "double", "boolean"}));
assertEquals(expected, actual);