@Test
 public void testAnonymizeStackTraceElementWhitelistedMethodname() {
   StackTraceElement element =
       createStackTraceElement(WHITELISTED_CLASSNAME_2, WHITELISTED_METHODNAME_2);
   visit(element, new AnonymizeStacktraceVisitor(PREFIX_WHITELIST));
   assertThat(element.getMethodName(), is(WHITELISTED_METHODNAME_2));
 }
 @Test
 public void testAnonymizeStackTraceElementMethodname() {
   StackTraceElement element =
       createStackTraceElement(NOT_WHITELISTED_CLASSNAME_2, NOT_WHITELISTED_METHODNAME_2);
   visit(element, new AnonymizeStacktraceVisitor(PREFIX_WHITELIST));
   assertThat(element.getMethodName(), is(ANONYMIZED_TAG));
 }
 @Test
 public void testAnonymizeThrowableDtoClassname() {
   Throwable throwable = createThrowable(NOT_WHITELISTED_CLASSNAME);
   visit(throwable, new AnonymizeStacktraceVisitor(PREFIX_WHITELIST));
   assertThat(throwable.getClassName(), is(ANONYMIZED_TAG));
 }
 @Test
 public void testAnonymizeStackTraceElementDtoWhitelistedClassnames() {
   StackTraceElement element = createStackTraceElement(WHITELISTED_CLASSNAME, "");
   visit(element, new AnonymizeStacktraceVisitor(PREFIX_WHITELIST));
   assertThat(element.getClassName(), is(WHITELISTED_CLASSNAME));
 }
 @Test
 public void testAnonymizeThrowableDtoWhitelistedClassname() {
   Throwable throwable = createThrowable(WHITELISTED_CLASSNAME);
   visit(throwable, new AnonymizeStacktraceVisitor(PREFIX_WHITELIST));
   assertThat(throwable.getClassName(), is(WHITELISTED_CLASSNAME));
 }