@Test
public void testBothParentAndNameInObject() throws BoxRestException, BoxJSONException {
String name = "testname";
String parentid = "testid";
BoxItemRestoreRequestObject obj = BoxItemRestoreRequestObject.restoreItemRequestObject().setNewName(name).setNewParent(parentid);
Assert.assertEquals(name, obj.getFromEntity(NAME));
MapJSONStringEntity entity = (MapJSONStringEntity) obj.getFromEntity(PARENT);
Assert.assertEquals(parentid, entity.get(BoxFolder.FIELD_ID));
}