SpaceModifiers { public static boolean isReturnAsBytes(final int modifier) { return ( modifier & JSpace.RETURN_AS_BYTES ) != 0; } private  SpaceModifiers(); static boolean isWriteOnly(final int modifier); static boolean isWriteOrUpdate(final int modifier); static boolean isUpdateOnly(final int modifier); static boolean isEvictOnly(final int modifier); static boolean isReadOnly(final int modifier); static boolean isTakeOnly(final int modifier); static boolean isMatchById(final int modifier); static boolean isExclusiveRead(final int modifier); static boolean isReturnAsBytes(final int modifier);  }
@Test public void identifiesReturnAsBytesCorrectly() { assertTrue( SpaceModifiers.isReturnAsBytes( JSpace.EXCLUSIVE_READ_LOCK | JSpace.MATCH_BY_ID | JSpace.RETURN_AS_BYTES ) ); assertFalse( SpaceModifiers.isReturnAsBytes( JSpace.EXCLUSIVE_READ_LOCK | JSpace.MATCH_BY_ID ) ); }