DefaultCoreMaliciousCounterValueHandler implements CoreMaliciousCounterValueHandler { @Override public void maliciousCounterValueDetected(CoreAuthenticationObject authenticationObject) { throw new MaliciousCounterValueException("Malicious counter value is detected. Cloned authenticators exist in parallel."); }  @Override void maliciousCounterValueDetected(CoreAuthenticationObject authenticationObject);  }
@Test void maliciousCounterValueDetected_test() { AuthenticationObject authenticationObject = mock(AuthenticationObject.class); assertThrows(MaliciousCounterValueException.class, () -> target.maliciousCounterValueDetected(authenticationObject) ); }