@Test
public void testPublishConfigWithEvent() throws NacosException {

	context.addApplicationListener(
			new ApplicationListener<NacosConfigPublishedEvent>() {
				@Override
				public void onApplicationEvent(NacosConfigPublishedEvent event) {
					assertNacosConfigEvent(event);
					Assert.assertEquals(CONTENT, event.getContent());
					Assert.assertTrue(event.isPublished());
				}
			});
	configService.publishConfig(DATA_ID, GROUP_ID, CONTENT);
}