@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));
  }
}