runTest(new byte[] { (byte) 131, 116, 0, 0, 0, 1, 104, 1, 97, 3, 108,
0, 0, 0, 1, 100, 0, 1, 114, 106 }, "#{{3} => [r]}", 4);
try {
// #{2 => [],a => 1}
final OtpErlangMap map = new OtpErlangMap(new OtpInputStream(
new byte[] { (byte) 131, 116, 0, 0, 0, 2, 97, 2, 106,
100, 0, 1, 97, 97, 1 }));
if (map.arity() != 2) {
fail(5);
}
if (!new OtpErlangLong(1).equals(map.get(new OtpErlangAtom("a")))) {
fail(6);
}
if (!new OtpErlangList().equals(map.get(new OtpErlangLong(2)))) {
fail(7);
}
if (map.get(new OtpErlangLong(1)) != null) {
fail(8);
}
} catch (final OtpErlangDecodeException e) {
fail(99);
}