title: How to mock StorageOptions.newBuilder()
body: <p>Can you help me in mocking StorageOptions.newBuilder()</p>
  <p>Code to be Mocked:</p>
  <pre><code>StorageOptions.newBuilder.setProjectId(&quot;Test&quot;).build().getService()
  </code></pre>
  <p>Code I have written:</p>
  <pre><code>Storage mockStorage = Mockito.mock(Storage.class);
  
  MockedStatic&lt;StorageOptions&gt; storageOptionsMock = Mockito.mockStorage(StorageOptions.class);
  storageOptionsMock.when( ()-&gt; StorageOptions.newBuilder().setProjectId(&quot;Test&quot;).build().getService()).thenReturn(mockStorage);
  
  </code></pre>
  <p>Error:</p>
  <pre><code>org.mockito.exceptions.misusing.WrongTypeOfReturnValue: 
  Storage$MockitoMock$1939527098 cannot be returned by newBuilder()
  newBuilder() should return Builder
  </code></pre>