public void testDefaultSystemName() {
   // create
   Reporter t = l.provideReporter("" + getNumToTest3());
   // check
   Assert.assertTrue("real object returned ", t != null);
   t = l.getBySystemName(getSystemName(getNumToTest3()));
   Assert.assertTrue(
       "system name correct ", t == l.getBySystemName(getSystemName(getNumToTest3())));
 }
 public void testReporterPutGet() {
   // create
   Reporter t = l.newReporter(getSystemName(getNumToTest1()), "mine");
   // check
   Assert.assertTrue("real object returned ", t != null);
   Assert.assertTrue("user name correct ", t == l.getByUserName("mine"));
   Assert.assertTrue(
       "system name correct ", t == l.getBySystemName(getSystemName(getNumToTest1())));
 }
  public void testSingleObject() {
    // test that you always get the same representation
    Reporter t1 = l.newReporter(getSystemName(getNumToTest1()), "mine");
    Assert.assertTrue("t1 real object returned ", t1 != null);
    Assert.assertTrue("same by user ", t1 == l.getByUserName("mine"));
    Assert.assertTrue("same by system ", t1 == l.getBySystemName(getSystemName(getNumToTest1())));

    Reporter t2 = l.newReporter(getSystemName(getNumToTest1()), "mine");
    Assert.assertTrue("t2 real object returned ", t2 != null);
    // check
    Assert.assertTrue("same new ", t1 == t2);
  }
 public void testMisses() {
   // try to get nonexistant lights
   Assert.assertTrue(null == l.getByUserName("foo"));
   Assert.assertTrue(null == l.getBySystemName("bar"));
 }