I'm trying to create my first tests. I have to prove that a method returns a ContextLambda type, I am using the assertSame function to test it, but my test fails, I do not know what assert to use to test this, with assertEquals also fails. my test is something like that:
@Test
public void testCanCreateContextForLambda() {
ContextFactory factory = new ContextFactory();
LambdaContext context = factory.forLambda(
new FakeRequest(),
new FakeResponse(),
new FakeLambda()
);
assertSame(LambdaContext.class, context);
}