public void testEncodingDecodingFullness(){
  for (  GridClientCacheFlag f : GridClientCacheFlag.values()) {
    if (f == KEEP_BINARIES)     continue;
    int bits=GridClientConnection.encodeCacheFlags(Collections.singleton(f));
    assertTrue(bits != 0);
    boolean out=GridCacheCommandHandler.parseCacheFlags(bits);
    assertEquals(out,true);
  }
}

public void testEncodingDecodingFullness ( ) { for ( GridClientCacheFlag f : GridClientCacheFlag . values ( ) ) { if ( f == KEEP_BINARIES ) continue ; int bits = GridClientConnection . encodeCacheFlags ( Collections . singleton ( f ) ) ; assertTrue ( bits != 0 ) ; boolean out = GridCacheCommandHandler . parseCacheFlags ( bits ) ; assertEquals ( out , true ) ; } }
tests that each client flag will be correctly converted to server flag .
