    @Test(expected = NullPointerException.class)
    public void testNullPartitionKey()
    {

        ManagedJobProcessor jobProcessor = new ManagedJobProcessor();
        jobProcessor.hiveHqlGenerator = Mockito.mock(HiveHqlGenerator.class);
        ProcessBuilder pb = jobProcessor.createProcessBuilder(new JobDefinition(1L, "test", "obj", "usage",
                "ft", "2016-08-12", "null", "111", null));

    }