    @Test
    public void setContrastValidValues() throws IOException {

        mockStatic(BitmapHelper.class);
        mockStatic(Bitmap.class);
        Sh1106 sh1106 = new Sh1106(mI2c);

        int[] validValues = {0, 66, 255};

        for (int validValue : validValues) {
            sh1106.setContrast(validValue);
            Mockito.verify(mI2c).writeRegByte(0x00, (byte) 0x81);
            Mockito.verify(mI2c).writeRegByte(0x00, (byte) validValue);
            Mockito.reset(mI2c);
        }
    }