@Test
public void testGetObservation() {

    final int id = 8876;
    final String name = "TestObservation";
    final Observation observation = new Observation();
    observation.setName(name);
    when(persistenceManager.pick(GET_OBSERVATION_SQL, id)).thenReturn(observation);
    final Observation toolStorageObservation = jpaStorage.getObservation(id);
    assertNotNull(toolStorageObservation);
    assertEquals(name, toolStorageObservation.getName());
    verify(persistenceManager, times(1)).pick(GET_OBSERVATION_SQL, id);
    verifyNoMoreInteractions(persistenceManager);
}