@Test
public void testRemoveLastOr()
{

    assertEquals( null, TextUtils.removeLastOr( null ) );
    assertEquals( "", TextUtils.removeLastOr( "" ) );
    assertEquals( "or name='tom' or name='john' ", TextUtils.removeLastOr( "or name='tom' or name='john' or" ) );
    assertEquals( "or name='tom' or name='john' ", TextUtils.removeLastOr( "or name='tom' or name='john' or " ) );
    assertEquals( "or name='tom' or name='john' ", TextUtils.removeLastOr( "or name='tom' or name='john' or  " ) );
}