title: Tests repeats the code with Mockito
body: <p>
  My tests just repeats the code. For method</p>
  
  <pre class="lang-java prettyprint-override"><code>public void start(Context context) {
      context.setA(CONST_A);
      context.setB(CONST_B);
      ...
  }
  </code></pre>
  
  <p>I wrote test using Mockito</p>
  
  <pre class="lang-java prettyprint-override"><code>@Test
  public void testStart() throws Exception {
      Context mockContext = mock(Context.class);
  
      action.start(mockContext);
  
      verify(mockAction).setA(Action.CONST_A);
      verify(mockAction).setB(Action.CONST_B);
      ...
  }
  </code></pre>
  
  <p>Or for </p>
  
  <pre class="lang-java prettyprint-override"><code>public void act() {
     state.act();
  }
  </code></pre>
  
  <p>test</p>
  
  <pre class="lang-java prettyprint-override"><code>@Test
  public void testAct() throws Exception {
      State mockState = mock(State.class);
      context.setState(mockState);
  
      context.act();
  
      verify(mockState).act();
  }
  </code></pre>
  
  <p>Are such tests useful? Such methods need to be tested and how to test them?</p>