@@ -35,7 +35,7 @@ public TabLayoutAssert hasTabGravity(@TabGravity int gravity) {
 
   public TabLayoutAssert hasTabMode(@TabMode int mode) {
     isNotNull();
-    int actualMode = actual.getTabCount();
+    int actualMode = actual.getTabMode();
     //noinspection ResourceType
     assertThat(actualMode) //
         .overridingErrorMessage("Expected tab mode of <%s> but was <%s>.", modeToString(mode),