return result;
}
@Test
public void testCreateMembership1() throws Exception {
final BoxGroup group = createGroup();
try {
final Map<String, Object> headers = new HashMap<String, Object>();
// parameter type is String
headers.put("CamelBox.groupId", group.getId());
// parameter type is String
headers.put("CamelBox.userId", testUserId);
// parameter type is String
headers.put("CamelBox.role", BoxGroupMembership.ROLE_MEMBER);
BoxGroupMembership result = requestBodyAndHeaders("direct://CREATEMEMBERSHIP_1", null, headers);
assertNotNull("createMembership result", result);
LOG.debug("createMembership: " + result);
} finally {
deleteGroup(group.getId());
}
}