@Test
public void testAddBodyLines() {

    Method method = new Method("bar");
    assertEquals(0, method.getBodyLines().size());
    method.addBodyLine("// test1");
    assertEquals(1, method.getBodyLines().size());
    assertEquals("// test1", method.getBodyLines().get(0));
    method.addBodyLine(0, "// test0");
    assertEquals(2, method.getBodyLines().size());
    assertEquals("// test0", method.getBodyLines().get(0));
    method.addBodyLines(Arrays.asList("// test2", "// test3"));
    assertEquals(4, method.getBodyLines().size());
    assertEquals("// test2", method.getBodyLines().get(2));
    assertEquals("// test3", method.getBodyLines().get(3));
    method.addBodyLines(3, Arrays.asList("// test2.1", "// test2.2"));
    assertEquals(6, method.getBodyLines().size());
    assertEquals("// test2", method.getBodyLines().get(2));
    assertEquals("// test2.1", method.getBodyLines().get(3));
    assertEquals("// test2.2", method.getBodyLines().get(4));
    assertEquals("// test3", method.getBodyLines().get(5));
}