This is wrong, index.htm is the success view defined above, so they should be the same, i prefer you use assertEquals instead of assertSame because same checks object equality rather than using the equals method