BoxJSONException, NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetException {
String id = "testid123";
String access = BoxSharedLinkAccess.COLLABORATORS;
Date unsharedAt = new Date();
BoxSharedLinkRequestEntity sEntity = new BoxSharedLinkRequestEntity(access);
sEntity.setPermissions(true);
sEntity.setUnshared_at(unsharedAt);
BoxSharedLinkRequestObject obj = BoxSharedLinkRequestObject.createSharedLinkRequestObject(sEntity);
CreateSharedLinkRequest request = new CreateSharedLinkRequest(CONFIG, JSON_PARSER, id, obj, type);
testRequestIsWellFormed(request, TestUtils.getConfig().getApiUrlAuthority(),
TestUtils.getConfig().getApiUrlPath().concat(CreateSharedLinkRequest.getUri(id, type)), HttpStatus.SC_OK, RestMethod.PUT);