@Test
public void fixInvalidSpoilers() {

  String invalid = "[spoiler](/s \"I will be hanged\")\n" +
      "[spoiler](# s\"I will be hanged\")\n" +
      "[spoiler](/s \"\"you will hang me.\"\")\n" +
      "[spoiler](/s \"\"\"you will hang me.\"\"\")";
  String expected = "[spoiler](/s \"I will be hanged\")\n" +
      "[spoiler](/s \"I will be hanged\")\n" +
      "[spoiler](/s \"you will hang me.\")\n" +
      "[spoiler](/s \"you will hang me.\")";
  String parsed = renderer.fixInvalidSpoilers(invalid);
  assertEquals(expected, parsed);
}