@Test
public void getAllShouldRetrieveAllChannelTypes() throws Exception {

    when(localeService.getLocale(null)).thenReturn(Locale.ENGLISH);
    channelTypeResource.getAll(null, null);
    verify(channelTypeRegistry).getChannelTypes(Locale.ENGLISH);
}