@Test
public void shouldGetTheNameOfTheContextAsTheAppNameUpToTheFirstDash() throws Exception {

    final String appName = "somecontext-service";
    when(serviceContextNameProvider.getServiceContextName()).thenReturn(appName);
    assertThat(contextNameProvider.getContextName(), is("somecontext"));
}