@Before
public void createMocks() {
pendingTask = new SingularityPendingTask(new SingularityPendingTaskId("test", "1", 0, 0, PendingType.IMMEDIATE), Optional.<String>absent());
final SingularitySlaveAndRackManager rackManager = mock(SingularitySlaveAndRackManager.class);
final ExecutorIdGenerator idGenerator = mock(ExecutorIdGenerator.class);
when(idGenerator.getNextExecutorId()).then(new CreateFakeId());
builder = new SingularityMesosTaskBuilder(new ObjectMapper(), rackManager, idGenerator);
resources = new Resources(1, 1, 0);
offer = Offer.newBuilder()