@Test
public void testSplitNicelyWithPattern() {

	List<String> result = Utils.splitNicelyWithPattern( "once upon a , time   ", ",|\\s" );
	Assert.assertEquals( 6, result.size());
	Assert.assertEquals( "once", result.get( 0 ));
	Assert.assertEquals( "upon", result.get( 1 ));
	Assert.assertEquals( "a", result.get( 2 ));
	Assert.assertEquals( "", result.get( 3 ));
	Assert.assertEquals( "", result.get( 4 ));
	Assert.assertEquals( "time", result.get( 5 ));
}