assertEquals(value, map.get(key));
}
@Test
public void testArrays() {
IMap map = getInstance().getMap("testArrays");
boolean[] booleanArray = {true, false};
map.put("boolean", booleanArray);
assertTrue(Arrays.equals(booleanArray, (boolean[]) map.get("boolean")));
int[] intArray = {1, 2};
map.put("int", intArray);
assertArrayEquals(intArray, (int[]) map.get("int"));
short[] shortArray = {(short) 1, (short) 2};
map.put("short", shortArray);
assertArrayEquals(shortArray, (short[]) map.get("short"));
short[] byteArray = {(byte) 1, (byte) 2};
map.put("byte", byteArray);
assertArrayEquals(byteArray, (short[]) map.get("byte"));
long[] longArray = {1l, 2l};
map.put("long", longArray);
assertArrayEquals(longArray, (long[]) map.get("long"));
float[] floatArray = {(float) 1, (float) 2};
map.put("float", floatArray);
assertTrue(Arrays.equals(floatArray, (float[]) map.get("float")));
double[] doubleArray = {(double) 1, (double) 2};
map.put("double", doubleArray);
assertTrue(Arrays.equals(doubleArray, (double[]) map.get("double")));
char[] charArray = {'1', '2'};
map.put("char", charArray);
assertArrayEquals(charArray, (char[]) map.get("char"));
Object[] objectArray = {"foo", null, new Integer(3)};
map.put("object", objectArray);
assertArrayEquals(objectArray, (Object[]) map.get("object"));
}