when(ref.getName()).thenReturn(TEST_COMPOSITE_REFERENCE);
references.add(ref);
when(app.getReferences()).thenReturn(references);
// Bindings
Binding bind = mock(Binding.class);
List<Binding> bindings = new ArrayList<Binding>();
bindings.add(bind);
when(bind.getName()).thenReturn("xyz");
when(service.getGateways()).thenReturn(bindings);
// Transformers
List<Transformer> transformers = new ArrayList<Transformer>();
Transformer t = mock(Transformer.class);