Add helper in tests/mesos.hpp to create task with resources
Add helper in tests/mesos.hpp to create task with resources

Review: https://reviews.apache.org/r/22048

chhsia0/mesos,andschwa/mesos,andschwa/mesos,zmalik/mesos,kaysoky/mesos,zmalik/mesos,zmalik/mesos,dforsyth/mesos,yuquanshan/customizedMesos,neilconway/mesos,reneploetz/mesos,craimbert/mesos,jpeach/mesos,chhsia0/mesos,zmalik/mesos,zmalik/mesos,Gilbert88/mesos,Gilbert88/mesos,chhsia0/mesos,kaysoky/mesos,gsantovena/mesos,dforsyth/mesos,craimbert/mesos,asamerh4/mesos,yuquanshan/customizedMesos,asamerh4/mesos,craimbert/mesos,Gilbert88/mesos,kaysoky/mesos,asamerh4/mesos,jpeach/mesos,abudnik/mesos,jpeach/mesos,verizonlabs/mesos,Aman-Jain-14/customizedMesos,Aman-Jain-14/customizedMesos,zmalik/mesos,dforsyth/mesos,andschwa/mesos,Aman-Jain-14/customizedMesos,Aman-Jain-14/customizedMesos,chhsia0/mesos,verizonlabs/mesos,gsantovena/mesos,Aman-Jain-14/customizedMesos,verizonlabs/mesos,abudnik/mesos,asamerh4/mesos,gsantovena/mesos,yuquanshan/customizedMesos,Aman-Jain-14/customizedMesos,abudnik/mesos,kaysoky/mesos,neilconway/mesos,kaysoky/mesos,reneploetz/mesos,verizonlabs/mesos,Aman-Jain-14/customizedMesos,asamerh4/mesos,reneploetz/mesos,reneploetz/mesos,abudnik/mesos,dforsyth/mesos,kaysoky/mesos,andschwa/mesos,yuquanshan/customizedMesos,dforsyth/mesos,jpeach/mesos,gsantovena/mesos,craimbert/mesos,abudnik/mesos,gsantovena/mesos,gsantovena/mesos,yuquanshan/customizedMesos,andschwa/mesos,neilconway/mesos,andschwa/mesos,neilconway/mesos,craimbert/mesos,jpeach/mesos,jpeach/mesos,yuquanshan/customizedMesos,Gilbert88/mesos,asamerh4/mesos,Gilbert88/mesos,verizonlabs/mesos,craimbert/mesos,yuquanshan/customizedMesos,reneploetz/mesos,chhsia0/mesos,andschwa/mesos,neilconway/mesos,Gilbert88/mesos,gsantovena/mesos,dforsyth/mesos,abudnik/mesos,neilconway/mesos,dforsyth/mesos,neilconway/mesos,verizonlabs/mesos,verizonlabs/mesos,chhsia0/mesos,reneploetz/mesos,reneploetz/mesos,zmalik/mesos,chhsia0/mesos,kaysoky/mesos,asamerh4/mesos,abudnik/mesos,craimbert/mesos,jpeach/mesos,Gilbert88/mesos