    @Test
    public void testWithNotSupportedLocation() throws Exception {

        thrown.expect(UnsupportedLocationException.class);
        String expectedMessage = "Unsupported location: '" + LOCATION + "'";
        thrown.expectMessage(expectedMessage);

        LocalizationProvider localizationProvider = createDefault();
        when(localeResolver.getLocale()).thenReturn(Locale.ITALY);
        when(resourceLoader.isSupported(LOCATION)).thenReturn(false);

        try {
            localizationProvider.getString("str.key");
        } finally {
            InOrder inOrder = inOrder();
            inOrder.verify(localeResolver).getLocale();
            inOrder.verify(resourceLoader).isSupported(LOCATION);
            inOrder.verifyNoMoreInteractions();
        }
    }