How to use Lombok @Builder annotation on Methods
<p>I want to have an easy way to construct test data and have found the Builder pattern to be a good fit as described <a href="http://www.natpryce.com/articles/000714.html" rel="noreferrer">here</a>. However to reduce boilerplate codes in the component tests, even more, I have found <a href="https://projectlombok.org/features/Builder.html" rel="noreferrer">@Builder</a> from Project Lombok to be a nice candidate to try. However, I can't find any documentation or online examples on how to use it on a method. I want to use <code>@Builder</code> on some sort of factory method since I can't make any changes to the implementation.</p>

<p>Can someone give an example on how to actually use <code>@Builder</code> on a method? </p>