@Test
@SneakyThrows
public void shouldHandleNullResponseFromDataflow() {

  when(dataflow
          .projects()
          .locations()
          .jobs()
          .list("project", "region")
          .setFilter("ACTIVE")
          .execute()
          .getJobs())
      .thenReturn(null);
  assertThat(dfJobManager.listRunningJobs(), hasSize(0));
}