@@ -54,6 +54,17 @@ public NotificationAssert hasDeleteIntent(PendingIntent intent) {
   }
 
   public NotificationAssert hasFlags(@NotificationFlags int flags) {
+    isNotNull();
+    int actualFlags = actual.flags;
+    //noinspection ResourceType
+    assertThat(actualFlags & flags) //
+        .overridingErrorMessage("Expected flags <%s> but was <%s>.", flagsToString(flags),
+            flagsToString(actualFlags & flags)) //
+        .isEqualTo(flags);
+    return this;
+  }
+
+  public NotificationAssert hasOnlyFlags(@NotificationFlags int flags) {
     isNotNull();
     int actualFlags = actual.flags;
     //noinspection ResourceType