### Question:
ItalicRule implements InlineRule { @Override public MarkdownString toMarkdownString(String pContent) { Matcher matcher = getRegex().matcher(pContent); String content = ""; if (matcher.find()) { content = matcher.group(2); } return new ItalicString(content, true); }  @Override Pattern getRegex(); @Override MarkdownString toMarkdownString(String pContent);  }### Answer:
@Test public void shouldCreateItalicString() { assertEquals("text", mItalicRule.toMarkdownString("*text*").getContent()); }
@Test public void shouldNotCreateItalicString() { assertNotEquals("text", mItalicRule.toMarkdownString("$$text$$").getContent()); }