@Test
public void testFindCallerOf() {

  // There are 2 internal methods (not including the log method itself) in our fake library.
  LoggerCode library = new LoggerCode(2);
  UserCode code = new UserCode(library);
  code.invokeUserCode();
  assertThat(library.caller.getClassName()).isEqualTo(UserCode.class.getName());
  assertThat(library.caller.getMethodName()).isEqualTo("loggingMethod");
}