@Test(expected = NacosException.class)
public void testGetConfigOnTimeout() throws NacosException {

	final long timeout = -1L;
	context.addApplicationListener(
			new ApplicationListener<NacosConfigTimeoutEvent>() {
				@Override
				public void onApplicationEvent(NacosConfigTimeoutEvent event) {
					assertNacosConfigEvent(event);
					Assert.assertEquals(timeout, event.getTimeout());
					Assert.assertEquals(TIMEOUT_ERROR_MESSAGE,
							event.getErrorMessage());
				}
			});
	configService.getConfig(DATA_ID, GROUP_ID, timeout); // trigger timeout error
}