@Test(expected = IllegalArgumentException.class)
public void testWriteIllegalSize() throws Exception {

    address = 0;
    byte[] data = new byte[1];
    randomGenerator.nextBytes(data);
    device.write(address, data);
}