@Test
public void testValidJob() throws Exception {

    when(jobOperations.getJob(JOB_ID)).thenReturn(Optional.of(Job.<ServiceJobExt>newBuilder()
            .withId(JOB_ID)
            .withStatus(JobStatus.newBuilder()
                    .withState(JobState.Accepted)
                    .build())
            .withJobDescriptor(JobDescriptor.<ServiceJobExt>newBuilder()
                    .withExtensions(ServiceJobExt.newBuilder().build())
                    .withContainer(Container.newBuilder()
                            .withImage(Image.newBuilder().build())
                            .withContainerResources(ContainerResources.newBuilder()
                                    .withAllocateIP(true)
                                    .build())
                            .build())
                    .build())
            .build()));
    assertThatCode(() -> loadBalancerValidator.validateJobId(JOB_ID)).doesNotThrowAnyException();
}