@Test
public void testGetSetConfiguration() {

    Configuration currentConfig = Configuration.current();
    assertThat(currentConfig instanceof Configuration).isTrue();
    Configuration newConfig = Mockito.mock(Configuration.class);
    try{
        ConfigurationProvider.setConfiguration(newConfig);
        assertThat(Configuration.current()).isEqualTo(newConfig);
    }finally{
        ConfigurationProvider.setConfiguration(currentConfig);
    }
    assertThat(Configuration.current()).isEqualTo(currentConfig);
}