/** * Method: pop() */ @Test public void testPop() { DataQuery prePopped = DataQuery.of("this", "test", "query"); DataQuery expected = DataQuery.of("this", "test"); assertThat(prePopped.pop().equals(expected), is(true)); DataQuery empty = DataQuery.of(); DataQuery emptyPopped = empty.pop(); assertThat(emptyPopped.equals(empty), is(true)); DataQuery single = DataQuery.of("single"); assertThat(single.pop().equals(empty), is(true)); }