when(bind.getName()).thenReturn("xyz");
when(service.getGateways()).thenReturn(bindings);
// Transformers
List<Transformer> transformers = new ArrayList<Transformer>();
Transformer t = mock(Transformer.class);
transformers.add(t);
when(app.getTransformers()).thenReturn(transformers);
// Validators
List<Validator> validators = new ArrayList<Validator>();