{
long scn = 10;
DbusEventBufferAppendable deba = EasyMock
.createMock(DbusEventBufferAppendable.class);
deba.startEvents();
EasyMock.expectLastCall().andAnswer(new IAnswer()
{
@Override
public Object answer()
{
return null;
}
});
DbusEventKey dek = EasyMock.createNiceMock(DbusEventKey.class);
EasyMock.expect(
deba.appendEvent(dek, EasyMock.createNiceMock(DbusEventInfo.class),
null)).andReturn(Boolean.TRUE);
deba.endEvents(EasyMock.eq(scn), null);
EasyMock.expectLastCall().andAnswer(new IAnswer()
{
@Override
public Object answer()
{
return null;