@Test
public void shouldReturnEmptyPackageNameForInvalidFlattenComponentString() {

    // when: passing null
    val resultForNull = ComponentNameUtils.packageNameFrom(null);
    assertThat(resultForNull, is(""));
    // when: passing empty string
    val resultForEmpty = ComponentNameUtils.packageNameFrom("");
    assertThat(resultForEmpty, is(""));
    // when: passing string with invalid format
    val resultForInvalidFormat = ComponentNameUtils.packageNameFrom("com.abc.MyActivity");
    assertThat(resultForInvalidFormat, is(""));
}