@Override
	@SuppressWarnings("deprecation")
	protected String getAppName() {
		String appName = registration.getServiceId();
		return StringUtils.isEmpty(appName) ? super.getAppName() : appName;
	}
@Test
	public void testGetAppName() {
		doReturn("application").when(environment).getProperty(anyString(), anyString());
		assertThat(polarisAutoServiceRegistration.getAppName()).isEqualTo("application");

		doReturn(SERVICE_PROVIDER).when(registration).getServiceId();
		assertThat(polarisAutoServiceRegistration.getAppName()).isEqualTo(SERVICE_PROVIDER);
	}