@Test
public void shouldCorrectlyGenerateTheCorrectDataSourceNameBasedOnTheAppName() throws Exception {

    when(jndiAppNameProvider.getAppName()).thenReturn("framework");
    assertThat(systemDataSourceNameProvider.getDataSourceName(), is("java:/app/framework/DS.system"));
}