public void removeBadSession() {
        cleanup(jobMetaDataParameterObject);
    }
@Test
    public void testRemoveBadSession() throws Exception {
        Path jarPath = Files.createTempFile("runjob", ".jar");
        assertTrue(Files.exists(jarPath));
        when(jobMetaDataParameterObject.getJarPath()).thenReturn(jarPath);
        when(jobMetaDataParameterObject.isJarOnClient()).thenReturn(true);

        jobUploadStatus.removeBadSession();

        assertFalse(Files.exists(jarPath));
    }