### Question:
UArrayAccess extends UExpression implements ArrayAccessTree { @Override public JCArrayAccess inline(Inliner inliner) throws CouldNotResolveImportException { return inliner.maker().Indexed(getExpression().inline(inliner), getIndex().inline(inliner)); }  static UArrayAccess create(UExpression arrayExpr, UExpression indexExpr); @Override abstract UExpression getExpression(); @Override abstract UExpression getIndex(); @Override Choice<Unifier> visitArrayAccess(ArrayAccessTree arrayAccess, Unifier unifier); @Override R accept(TreeVisitor<R, D> visitor, D data); @Override Kind getKind(); @Override JCArrayAccess inline(Inliner inliner);  }### Answer:
@Test public void inline() throws CouldNotResolveImportException { UExpression arrayIdent = mock(UExpression.class); when(arrayIdent.inline(isA(Inliner.class))) .thenReturn(inliner.maker().Ident(inliner.asName("array"))); assertInlines("array[5]", UArrayAccess.create(arrayIdent, ULiteral.intLit(5))); }