CallerInfo { public String obtainlink(){ return "(" + className + ":" + classLineNumber + ")"; } CallerInfo();  CallerInfo(String className, int classLineNumber); String getClassName(); String obtainlink();  }
@Test public void createNotValidCallerTest(){ CallerInfo callerInfo = new CallerInfo(); assertEquals(callerInfo.obtainlink(), "(NotFound:0)"); }
@Test public void createValidCallerTest(){ CallerInfo callerInfo = new CallerInfo(CallerInfoTest.class.getName(), 1); assertTrue(callerInfo.obtainlink().contains("(" + CallerInfoTest.class.getName() + ":")); }