@Test
  public void testGetFlags() {
    List<TapResponseFlag> result = instance.getFlags();

    short expResultVal = 0;
    for (TapResponseFlag flag : expectedFlags) {
      expResultVal = (short)(expResultVal + flag.getFlags());
    }

    short resultVal = 0;
    for (TapResponseFlag flag : result) {
      resultVal = (short)(resultVal + (int)flag.getFlags());
    }

    assertEquals(expResultVal, resultVal);
  }
Test of getFlags method, of class ResponseMessage.
src/test/java/net/spy/memcached/tapmessage/ResponseMessageBaseCase.java