Getting the logging handler under test