@Test
public void setStringTest() {

    String testString = "Hallo";
    String testString2 = " Martijn";
    BluetoothBytesParser parser = new BluetoothBytesParser();
    // Set string in empty byte array
    parser.setString(testString);
    assertEquals(testString, parser.getStringValue(0));
    // Set string after previous string
    parser.setString(testString2);
    assertEquals(testString+testString2, parser.getStringValue(0));
    // Set string somewhere in the middle
    parser.setString("e", 1);
    assertEquals("Hello Martijn", parser.getStringValue(0));
    boolean result = parser.setString(null);
    assertFalse(result);
    result = parser.setString(null, 0);
    assertFalse(result);
}