### Question:
AbstractReadableBuffer implements ReadableBuffer { @Override public final int readInt() { checkReadable(4); int b1 = readUnsignedByte(); int b2 = readUnsignedByte(); int b3 = readUnsignedByte(); int b4 = readUnsignedByte(); return (b1 << 24) | (b2 << 16) | (b3 << 8) | b4; }  @Override final int readInt(); @Override boolean hasArray(); @Override byte[] array(); @Override int arrayOffset(); @Override void close();  }### Answer:
@Test public void readPositiveIntShouldSucceed() { mockBytes(0x7F, 0xEE, 0xDD, 0xCC); assertEquals(0x7FEEDDCC, buffer.readInt()); }
@Test public void readNegativeIntShouldSucceed() { mockBytes(0xFF, 0xEE, 0xDD, 0xCC); assertEquals(0xFFEEDDCC, buffer.readInt()); }