SpaceModifiers { public static boolean isWriteOnly(final int modifier) { return ( modifier & JSpace.WRITE_ONLY ) != 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 identifiesWriteOnlyModifierCorrectly() { assertTrue( SpaceModifiers.isWriteOnly( JSpace.WRITE_ONLY ) ); assertFalse( SpaceModifiers.isWriteOnly( JSpace.WRITE_OR_UPDATE ) ); assertFalse( SpaceModifiers.isWriteOnly( JSpace.UPDATE_ONLY ) ); }