public void setTitle(CharSequence title) {
    TextView cta = findViewById(R.id.cta_title);
    cta.setText(title);
  }
@Test
  public void testSetsTheTitleFromAttribute() {
    Context context = ApplicationProvider.getApplicationContext();
    final var rootTest = LayoutInflater.from(context).inflate(R.layout.test_search_layout, null);

    final AddOnStoreSearchView underTest = rootTest.findViewById(R.id.test_search_view);
    final TextView title = underTest.findViewById(R.id.cta_title);
    Assert.assertEquals("Search for add-ons", title.getText().toString());

    underTest.setTitle("now this");
    Assert.assertEquals("now this", title.getText().toString());
  }