@Before public void setUp() throws Exception { logger = new ConsoleAuditLogger(); ace = mock(AuditableAccessControlEntry.class); console = System.out; System.setOut(new PrintStream(bytes)); }
@After public void tearDown() throws Exception { System.setOut(console); bytes.reset(); }