@Test
public void testIsNotification() throws Throwable {

    // making sure we only do a full directive match to 'xn-nt' (PRAGMA_DIRECTIVE_NOTIFICATION)
    Operation op = Operation.createGet(null);
    assertFalse(op.isNotification());
    op.addPragmaDirective(Operation.PRAGMA_DIRECTIVE_SKIPPED_NOTIFICATIONS);
    assertFalse(op.isNotification());
    op.addPragmaDirective(Operation.PRAGMA_DIRECTIVE_NOTIFICATION);
    assertTrue(op.isNotification());
    op.removePragmaDirective(Operation.PRAGMA_DIRECTIVE_SKIPPED_NOTIFICATIONS);
    assertTrue(op.isNotification());
    op.removePragmaDirective(Operation.PRAGMA_DIRECTIVE_NOTIFICATION);
    assertFalse(op.isNotification());
}