changed to:
public void returnStringWhenPassNull() throws Exception {
        final Markdown markdown = mock(Markdown.class);
        when(markdown.render(null)).thenReturn("JSON can't be NULL");
        MatcherAssert.assertThat(markdown.render(null), Matchers.containsString("JSON can't be NULL"));
        verify(markdown).render(null);
    }