@Test
public void parseStringTest() {

    BluetoothBytesParser parser;
    String testString = "Hallo";
    String testString2 = "Hallo\0\0";
    String testString3 = "Hallo\0 \0 ";
    parser = new BluetoothBytesParser(testString.getBytes());
    assertEquals(testString, parser.getStringValue());
    // Test cleaning up trailing zero bytes
    parser = new BluetoothBytesParser(testString2.getBytes());
    assertEquals(testString, parser.getStringValue());
    // Test cleaning up trailing zero bytes and spaces
    parser = new BluetoothBytesParser(testString3.getBytes());
    assertEquals(testString, parser.getStringValue());
}