@Test
public void testGetReferenceObservation() {

    final String sql = "select o from ReferenceObservation o where o.id = ?1";
    final int id = 2286;
    final String name = "refer_to_me";
    final ReferenceObservation referenceObservation = new ReferenceObservation();
    referenceObservation.setName(name);
    when(persistenceManager.pick(sql, id)).thenReturn(referenceObservation);
    final ReferenceObservation toolStorageReferenceObservation = jpaStorage.getReferenceObservation(id);
    assertNotNull(toolStorageReferenceObservation);
    assertEquals(name, toolStorageReferenceObservation.getName());
    verify(persistenceManager, times(1)).pick(sql, id);
    verifyNoMoreInteractions(persistenceManager);
}