@Before
public void setup() throws Exception {
when(retryPolicy.delay(any(ThrottleState.class))).thenReturn(10L);
when(registrar.register(any(ServiceRegistration.class)))
.thenReturn(new NopServiceRegistrationHandle());
final TaskConfig config = TaskConfig.builder()
.namespace(NAMESPACE)
.host("AGENT_NAME")
.job(JOB)