0x04,
0x00, // cookie syncCookie OPTIONAL,
} );
bb.flip();
SyncRequestValue decorator = new SyncRequestValueDecorator( codec );
SyncRequestValue syncRequestValue = ( SyncRequestValue ) ( ( SyncRequestValueDecorator ) decorator ).decode( bb
.array() );
assertEquals( SynchronizationModeEnum.REFRESH_AND_PERSIST, syncRequestValue.getMode() );
assertEquals( "", Strings.utf8ToString( syncRequestValue.getCookie() ) );
assertEquals( false, syncRequestValue.isReloadHint() );
// Check the encoding
try
{
bb = ByteBuffer.allocate( 0x05 );