Looks at expected and actual expression being of Java 8 Optional type and whether the statement effectively tries to assert the presence, absence or content and then replaces the statement by isPresent(), isNotPresent(), contains(), or containsSame().