public void expectLogMessage(int level, String tag, Matcher<String> messageMatcher) {
    expectLog(level, tag, messageMatcher, null);
  }
@Test
  public void expectLogMessage_duplicateMatchers_areNotDeduplicated() {
    Log.e("Mytag", "message1");
    rule.expectLogMessage(Log.ERROR, "Mytag", Matchers.equalTo("message1"));
    rule.expectLogMessage(Log.ERROR, "Mytag", Matchers.equalTo("message1"));
    expectedException.expect(Matchers.isA(AssertionError.class));
  }