@Test
public void shouldGetDestinationFromInitialContext() throws Exception {

    final String destinationName = "destination name";
    final Destination destination = mock(Destination.class);
    when(initialContext.lookup(destinationName)).thenReturn(destination);
    assertThat(destinationProvider.getDestination(destinationName), is(destination));
}