@Test
public void testGetXmlForM2() {

  @Language("XML")
  String expected = "<com.google.android.material.textfield.TextInputLayout\n" +
                    "    android:layout_width=\"match_parent\"\n" +
                    "    android:layout_height=\"wrap_content\">\n" +
                    "\n" +
                    "    <com.google.android.material.textfield.TextInputEditText\n" +
                    "        android:layout_width=\"match_parent\"\n" +
                    "        android:layout_height=\"wrap_content\"\n" +
                    "        android:hint=\"hint\" />\n" +
                    "</com.google.android.material.textfield.TextInputLayout>\n";
  TextInputLayoutHandler handler = new TextInputLayoutHandler();
  assertThat(handler.getXml(SdkConstants.TEXT_INPUT_LAYOUT.newName(), XmlType.COMPONENT_CREATION)).isEqualTo(expected);
}