title: How to mock a builder with mockito
body: <p>I have a builder:</p>
  
  <pre><code>class Builder{
       private String name;
       private String address;
       public Builder setName(String name){
           this.name = name;
           return this;
      }
       public Builder setAddress(String address){
           this.address = address;
           return this;
      }
  
  }
  </code></pre>
  
  <p>Mocking the builder in mockito will gives me null for every method. So is there an easy way to get the builder return itself on every function call, without mocking every function itself using <code>when().thenReturn</code>.</p>