@Test
public void shouldIgnoreAnyPartOfTheAppNameAfterAHyphen() throws Exception {

    when(jndiAppNameProvider.getAppName()).thenReturn("framework-context-with-hyphens");
    assertThat(viewStoreDataSourceNameProvider.getDataSourceName(), is("java:/DS.framework"));
}