@Test
public void onlineConstraintShouldAddAndRemoveFromIndexAsPropertiesAndLabelsChange()
{
givenOnlineConstraint();
transaction( setProperty( b, "b" ), success );
transaction( setProperty( c, "c" ), addLabel( c, label ), success );
transaction( setProperty( d, "d" ), addLabel( d, label ), success );
transaction( removeProperty( a ), success );
transaction( removeProperty( b ), success );
transaction( removeProperty( c ), success );
transaction( setProperty( a, "a" ), success );
transaction( setProperty( c, "c2" ), success );
transaction(
assertLookupNode( "a", is( a ) ),
assertLookupNode( "b", is( nullValue( Node.class ) ) ),
assertLookupNode( "c", is( nullValue( Node.class ) ) ),
assertLookupNode( "d", is( d ) ),
assertLookupNode( "c2", is( c ) ) );
}