public void setText(String newText) {
    this.text = newText;
    this.dateUpdated = new Date();
    parseText();
  }
@Test
  void testInvalidProperties() {
    Note note = createNote();
    Paragraph paragraph = new Paragraph(note, null);
    assertThrows(RuntimeException.class,
            () -> {
              paragraph.setText("%test(p1=v1=v2) a");
            },
            "Invalid paragraph properties format");
  }