Assert.assertEquals("{}", writer.getBuffer().toString());
}
@Test
public void writeRedirectWithActiveSession() throws Exception {
WrappedSession wrappedSession = mock(WrappedSession.class);
when(session.getSession()).thenReturn(wrappedSession);
disableSessionExpirationMessages(messages);
new MetadataWriter().write(ui, writer, false, false, messages);