public static JobConsoleLogger getConsoleLogger() {
        if (context == null) throw new RuntimeException("context is null");
        return new JobConsoleLogger();
    }
@Test
    public void shouldFailGetLoggerIfContextIsNotSet() {
        ReflectionUtil.setStaticField(JobConsoleLogger.class, "context", null);
        try {
            JobConsoleLogger.getConsoleLogger();
            fail("expected this to fail");
        } catch (Exception e) {
            assertThat(e.getMessage(), is("context is null"));
        }
    }