public void CannotStartCustomJobType()
        {
            try
            {
                var mapReduceJobDefinition = new HadoopCustomJobCreationDetails {
                    CustomText = "pig text"
                };

                TestJobStart(mapReduceJobDefinition);
                Assert.Fail("An exception was expected");
            }
            catch (AggregateException aex)
            {
                Exception inner = aex.InnerExceptions.FirstOrDefault();
                Assert.IsNotNull(inner);
                Assert.IsInstanceOfType(inner, typeof(NotSupportedException));
                Assert.IsTrue(inner.Message.Contains("Cannot start jobDetails of type"));
                Assert.IsTrue(inner.Message.Contains("HadoopCustomJobCreationDetails"));
            }
        }
        public void CannotStartCustomJobType()
        {
            try
            {
                var mapReduceJobDefinition = new HadoopCustomJobCreationDetails { CustomText = "pig text" };

                TestJobStart(mapReduceJobDefinition);
                Assert.Fail("An exception was expected");
            }
            catch (AggregateException aex)
            {
                Exception inner = aex.InnerExceptions.FirstOrDefault();
                Assert.IsNotNull(inner);
                Assert.IsInstanceOfType(inner, typeof(NotSupportedException));
                Assert.IsTrue(inner.Message.Contains("Cannot start jobDetails of type"));
                Assert.IsTrue(inner.Message.Contains("HadoopCustomJobCreationDetails"));
            }
        }