---
title: "Comment by Sayan Das on \"Mockito Cheatsheet\" | Hashnode"
description: "In Section 'Stubbing a Void Method -&gt; Calling the Real Implementation', I think the last comment is wrong where it says the test will pass when the exception"
url: "https://hashnode.com/posts/mockito-cheatsheet/645511adaa2b3bedb6b01dc5/comment/67f28a09a042de5f9d7f3058"
---

[Discussion](https://hashnode.com/posts/mockito-cheatsheet/645511adaa2b3bedb6b01dc5)

Comment [Mockito Cheatsheet](https://hashnode.com/posts/mockito-cheatsheet/645511adaa2b3bedb6b01dc5)

[Sayan Das](https://hashnode.com/@kaizeco)

[Apr 6, 2025](https://hashnode.com/posts/mockito-cheatsheet/645511adaa2b3bedb6b01dc5/comment/67f28a09a042de5f9d7f3058)

In Section 'Stubbing a Void Method -> Calling the Real Implementation', I think the last comment is wrong where it says the test will pass when the exception is thrown. Maybe a copy paste issue?

[Shane Jennings](https://hashnode.com/@zinbo)

[Sep 2, 2025](https://hashnode.com/posts/mockito-cheatsheet/645511adaa2b3bedb6b01dc5/comment/67f28a09a042de5f9d7f3058#reply-68b72a5f210e3d3019c62008)

Yes you're right, good spot! I'll get that updated :)
