@SuppressWarnings({ "rawtypes", "unchecked", "cast" })

@Test
void getMap()
{
    Map unsafe = new LinkedHashMap(5);
    unsafe.put("1", "1");
    unsafe.put("2", "2");
    unsafe.put("3", "3");
    unsafe.put("4", "4");
    unsafe.put("5", "5");
    Map safe = (Map) this.scriptSafeProvider.get(unsafe);
    assertNotSame(unsafe, safe);
    assertTrue(safe instanceof Map);
    assertEquals(unsafe, safe);
    // Make sure order is kept
    assertEquals(unsafe.toString(), safe.toString());
}