code:     public void setUp() throws Exception {
          lc = new LoggerContext();
          lc.setName("testContext");
          logger = lc.getLogger(LoggerSerializationTest.class);
          // create the byte output stream
          bos = new ByteArrayOutputStream();
          oos = new ObjectOutputStream(bos);
          whitelist = LogbackClassicSerializationHelper.getWhilelist();
          whitelist.add(Foo.class.getName());
      }
  
      @After
  