### Question:
Integers { public static String toBinaryString(int i) { int count = 1, j = i; if (i < 0) { count = 32; } else { while ((j = j >>> 1) != 0) { count++; } } char[] buffer = new char[count]; do { buffer[--count] = (char) ((i & 1) + '0'); i = i >>> 1; } while (count > 0); return new String(buffer); }  static int decode(String string); static int parseInt(String string); static int parseInt(String string, int radix); static String toBinaryString(int i); static String toHexString(int i); static String toDecimalString(int value); static String toString(int value); static int highestOneBit(int i); static int lowestOneBit(int i); static int numberOfLeadingZeros(int i); static int numberOfTrailingZeros(int i); static int bitCount(int i); static int rotateLeft(int i, int distance); static int rotateRight(int i, int distance); static int reverseBytes(int i); static int reverse(int i); static int digit(char c, int radix); static final int MAX_VALUE; static final int MIN_VALUE; static final int MIN_RADIX; static final int MAX_RADIX; }### Answer:
@Test public void test_toBinaryStringI() { assertEquals("Incorrect string returned", "11", Integers.toBinaryString(3)); assertEquals("Incorrect string returned", "1111111111111111111111111111111", Integers.toBinaryString(Integers.MAX_VALUE)); assertEquals("Incorrect string returned", "10000000000000000000000000000000", Integers.toBinaryString(Integers.MIN_VALUE)); }