title: How do you do unit tests for getters and setters?
body: <p>I am new to tdd and the mockito web framework.</p>
  
  <p>Basically this is the getter method in the class:</p>
  
  <pre><code>public Long getDeviceManufactureId()
  {
      return deviceManufacturerId;
  }
  </code></pre>
  
  <p>How would I write a unit test?</p>
  
  <p>so far I am thinking this:</p>
  
  <p><em>dem</em> is the name of the class</p>
  
  <pre><code>@Test
  public void testGetDeviceManufactureIdreturnsDeviceManufactureId()
  {
      assertEquals("Richard", dem.getDeviceManufactureId());
  }
  </code></pre>