@Test
public void shouldReturnDummyComponentNameForInvalidFlattenString() {

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