@Test
public void testGetXml() {

  String expected =
    "<com.google.android.material.bottomappbar.BottomAppBar\n" +
    "    android:layout_width=\"match_parent\"\n" +
    "    android:layout_height=\"wrap_content\"\n" +
    "    style=\"@style/Widget.MaterialComponents.BottomAppBar.Colored\"\n" +
    "    android:layout_gravity=\"bottom\" />\n";
  ViewHandler handler = new BottomAppBarHandler();
  assertThat(handler.getXml(SdkConstants.BOTTOM_APP_BAR, XmlType.COMPONENT_CREATION)).isEqualTo(expected);
  assertThat(handler.getXml(SdkConstants.BOTTOM_APP_BAR, XmlType.DRAG_PREVIEW)).isEqualTo(expected);
}