diff --git a/agrona/src/test/java/org/agrona/concurrent/AgentInvokerTest.java b/agrona/src/test/java/org/agrona/concurrent/AgentInvokerTest.java
index <HASH>..<HASH> 100644
--- a/agrona/src/test/java/org/agrona/concurrent/AgentInvokerTest.java
+++ b/agrona/src/test/java/org/agrona/concurrent/AgentInvokerTest.java
@@ -146,6 +146,7 @@ public class AgentInvokerTest
         when(mockAgent.doWork()).thenThrow(new ClosedByInterruptException());
 
         assertExceptionNotReported();
+        assertTrue(Thread.interrupted()); // by throwing ClosedByInterruptException
     }
 
     @Test
@@ -167,6 +168,7 @@ public class AgentInvokerTest
             });
 
         assertExceptionNotReported();
+        assertTrue(Thread.interrupted()); // by throwing ClosedByInterruptException
     }
 
     private void assertExceptionNotReported()
[Java] Clear the interrupted flag on the main thread to ensure that further tests will not be affected