@Test
public void testStoreColumnWithTransaction() {

    final Sensor sensor = new SensorBuilder().name("gnatz").build();
    final Column column = (Column) new ColumnBuilder().name("Schneckchen").sensor(sensor).build();
    columnStorage.storeWithTransaction(column);
    verify(persistenceManager, times(1)).transaction();
    verify(persistenceManager, times(1)).persist(column);
    verify(persistenceManager, times(1)). pick("select s from Sensor s where s.name = ?1", "gnatz");
    verify(persistenceManager, times(1)).commit();
    verifyNoMoreInteractions(persistenceManager);
}