in src/main/java/org/apache/sling/launchpad/webapp/integrationtest/servlets/post/PostServletVersionableTest.java [413:441]
public void testDeletingAPropertyOfACheckedInNode() throws IOException {
params.put(":checkinNewVersionableNodes", "true");
params.put("testprop", "testvalue");
final String location = testClient.createNode(postUrl + SlingPostConstants.DEFAULT_CREATE_SUFFIX, params);
assertHttpStatus(location + DEFAULT_EXT, HttpServletResponse.SC_OK,
"POST must redirect to created resource (" + location + ")");
assertTrue("Node (" + location + ") must have generated name",
!location.endsWith("/*"));
assertTrue("Node (" + location + ") must created be under POST URL (" + postUrl + ")",
location.contains(postUrl + "/"));
String content = getContent(location + ".txt", CONTENT_TYPE_PLAIN);
assertTrue("Node (" + location + ") should be checked in.",
content.contains("jcr:isCheckedOut: false"));
assertTrue("Node (" + location + ") has a test property.",
content.contains("testprop: testvalue"));
params.clear();
params.put(":autoCheckout", "true");
params.put("testprop@Delete", "");
testClient.createNode(location, params);
content = getContent(location + ".txt", CONTENT_TYPE_PLAIN);
assertTrue("Node (" + location + ") should be checked in.",
content.contains("jcr:isCheckedOut: false"));
assertFalse("Node (" + location + ") shouldn't have a test property.",
content.contains("testprop: testvalue"));
}