@Test
  public void testGetAttributeValue_Int() throws XmlPullParserException {
    forgeAndOpenDocument("<foo bar=\"bar\"/>");
    assertThat(parser.getAttributeValue(0)).isEqualTo("bar");

    try {
      parser.getAttributeValue(attributeIndexOutOfIndex());
      fail();
    } catch (IndexOutOfBoundsException ex) {
      // pass
    }
  }
 @Test
 public void testGetAttributeValueStringString() throws XmlPullParserException, IOException {
   forgeAndOpenDocument("<foo xmlns:bar=\"bar\"/>");
   assertThat(parser.getAttributeValue(XMLNS_NS, "bar")).isEqualTo("bar");
 }