@Test
public void testRemoveLastAnd()
{

    assertEquals( null, TextUtils.removeLastAnd( null ) );
    assertEquals( "", TextUtils.removeLastAnd( "" ) );
    assertEquals( "and name='tom' and name='john' ", TextUtils.removeLastAnd( "and name='tom' and name='john' and" ) );
    assertEquals( "and name='tom' and name='john' ", TextUtils.removeLastAnd( "and name='tom' and name='john' and " ) );
    assertEquals( "and name='tom' and name='john' ", TextUtils.removeLastAnd( "and name='tom' and name='john' and  " ) );
}