@Test
public void testReserveReserveASingleSimpleValueWhenUsed()
{

    reservedValueStore.reserveValues( simpleReservedValue, Lists.newArrayList( "FOOBAR" ) );
    List<ReservedValue> res = null;
    try
    {
        res = reservedValueService.reserve( simpleTextPattern, 1, new HashMap<>(), future );
    }
    catch ( Exception e )
    {
        assertTrue( e instanceof ReserveValueException );
        assertEquals( "Could not reserve value: Not enough values left to reserve 1 values.", e.getMessage() );
    }
    assertNull( res );
    assertEquals( 1, reservedValueStore.getCount() );
}