@Test
@SuppressFBWarnings("SEC_SIDE_EFFECT_CONSTRUCTOR") // this is how RunListenerRegister works..
public void testRunListenerRegister() {

  new RunListenerRegister();
  RunListener runListener = new RunListener();
  RunListenerRegister.addRunListener(runListener, true);
  Assert.assertTrue(RunListenerRegister.removeRunListener(runListener));
  Assert.assertFalse(RunListenerRegister.removeRunListener(runListener));
  try {
    new RunListenerRegister();
    Assert.fail();
  } catch (ExceptionInInitializerError ex) {
    // expected
  }
}