ObjectUtils { protected static int getInt( final byte[] bytes) { int i = 0; int j = 24; for (int k = 0; 0 <= j; ++k) { int l = bytes[k] & 0xff; i += l << j; j -= 8; } return i; }  static String guid(); static String guid(
      final Object obj); static boolean equal(
      final Object obj1,
      final Object obj2); static int compare(
      final Comparable<T> o1,
      final T o2); static K nvl(
      final K... objs);  }
@Test public void testGetInt() { final Object[][] testParameters = new Object[][] {{new byte[] {0, 0, 0, 0}, 0}, {new byte[] {127, 0, 0, 1}, 2130706433}, {new byte[] {(byte) 192, (byte) 168, 0, 1}, -1062731775}}; try { ObjectUtils.getInt(null); } catch (Exception e) { assertSame(NullPointerException.class, e.getClass()); } for (final Object[] testParameter : testParameters) { int expected = (Integer) testParameter[1]; byte[] bytes = (byte[]) testParameter[0]; assertEquals(expected, ObjectUtils.getInt(bytes)); } }