package org.robolectric.integration_tests.libphonenumber;
import com.google.i18n.phonenumbers.PhoneNumberUtil;
import com.google.i18n.phonenumbers.Phonenumber;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.RobolectricTestRunner;
import static org.assertj.core.api.Assertions.assertThat;
@RunWith(RobolectricTestRunner.class)
public class ClassloadingTest {
/**
* <a href="https://github.com/robolectric/robolectric/issues/2773">Issue</a>
*/
@Test
public void getResourceAsStream() throws Exception {
Phonenumber.PhoneNumber phoneNumber = new Phonenumber.PhoneNumber();
phoneNumber.setCountryCode(7);
phoneNumber.setNationalNumber(4956360636L);
String format = PhoneNumberUtil.getInstance().format(phoneNumber, PhoneNumberUtil.PhoneNumberFormat.INTERNATIONAL);
assertThat(format).isNotNull();
}
}