@Test
void testRename() throws Exception {

    DefaultInitialContext context = new DefaultInitialContext();
    context.bind("name", "value");
    assertThrows(NameAlreadyBoundException.class, () -> context.rename("rename", "name"));
}