encoder.doEncode(message, composer, new FakeImapSession());
}
@Test
public void testShouldEncodeUidResponse() throws Exception {
FetchResponse message = new FetchResponse(100, null, new Long(72),
null, null, null, null, null, null);
context.checking(new Expectations() {{
final Sequence sequence = context.sequence("composition");
oneOf(composer).openFetchResponse(with(equal(100L))); inSequence(sequence);
oneOf(composer).message(with(equal("UID"))); inSequence(sequence);