Record r1 = new RecordImpl();
r1.add(new Field("test"));
r1.get("test").setValue(null);
CollapseWhitespace cwsp = new CollapseWhitespace();
cwsp.setApplyTo(Arrays.asList(new String[] { "test" }));
cwsp.apply(r1, scope);
Assert.assertNull(r1.get("test").getValue());
cwsp.setApplyTo(Arrays.asList(new String[] { "testNotExists" }));
cwsp.apply(r1, scope);
}