### Question:
BinContent { public static int longToSignedInt(long value) { return (int) value; } private  BinContent(); static long intToUnsignedLong(int value); static int longToSignedInt(long value);  }### Answer:
@Test public void testLongToSignedInt() { long a = 0; long b = 1; long c = -1; long d = Integer.MAX_VALUE; long e = Integer.MIN_VALUE; long f = 12345; long g = Long.MAX_VALUE; long h = 1094624935644L; long i = ((long) Integer.MAX_VALUE) + 1; Assert.assertEquals("Wrong conversion", 0, BinContent.longToSignedInt(a)); Assert.assertEquals("Wrong conversion", 1, BinContent.longToSignedInt(b)); Assert.assertEquals("Wrong conversion", -1, BinContent.longToSignedInt(c)); Assert.assertEquals("Wrong conversion", Integer.MAX_VALUE, BinContent.longToSignedInt(d)); Assert.assertEquals("Wrong conversion", Integer.MIN_VALUE, BinContent.longToSignedInt(e)); Assert.assertEquals("Wrong conversion", 12345, BinContent.longToSignedInt(f)); Assert.assertEquals("Wrong conversion", -1, BinContent.longToSignedInt(g)); Assert.assertEquals("Wrong conversion", -591724836, BinContent.longToSignedInt(h)); Assert.assertEquals("Wrong conversion", Integer.MIN_VALUE, BinContent.longToSignedInt(i)); }