@Test( dataProviderClass = DataProviders.class, dataProvider = "initialDataAndValueToBeSetWithExpectedOfSetBitUnitValue") public void setBitUnitValue_SetsTheValueAsLittleEndianToSpecifiedPosition( String initial, int value, int offset, int length, String expected) { ByteArrayAdapter tested = new ByteArrayAdapter(parse(initial)); tested.setBitUnitValue(value, offset, length); assertEquals(print(tested.getData()), expected); }