3333import quickfix .fix40 .Logon ;
3434import quickfix .fix50 .Email ;
3535
36+ import static org .hamcrest .Matchers .instanceOf ;
3637import static org .hamcrest .Matchers .is ;
3738import static org .hamcrest .Matchers .notNullValue ;
39+ import static org .hamcrest .MatcherAssert .assertThat ;
3840import static org .junit .Assert .assertEquals ;
3941import static org .junit .Assert .assertNull ;
40- import static org .junit .Assert .assertThat ;
4142import static org .junit .Assert .fail ;
4243import org .junit .Test ;
4344import static org .mockito .ArgumentMatchers .any ;
@@ -194,7 +195,7 @@ public void testParseFixt() throws Exception {
194195 Message message = MessageUtils .parse (mockSession , email .toString ());
195196
196197 assertThat (message , is (notNullValue ()));
197- assertThat (message , is (quickfix .fix40 .Email .class ));
198+ assertThat (message , instanceOf (quickfix .fix40 .Email .class ));
198199 }
199200
200201 @ Test
@@ -210,7 +211,7 @@ public void testParseFixtLogon() throws Exception {
210211 Message message = MessageUtils .parse (mockSession , logon .toString ());
211212
212213 assertThat (message , is (notNullValue ()));
213- assertThat (message , is (quickfix .fixt11 .Logon .class ));
214+ assertThat (message , instanceOf (quickfix .fixt11 .Logon .class ));
214215 }
215216
216217 @ Test
@@ -225,7 +226,7 @@ public void testParseFixtLogout() throws Exception {
225226 Message message = MessageUtils .parse (mockSession , logout .toString ());
226227
227228 assertThat (message , is (notNullValue ()));
228- assertThat (message , is (quickfix .fixt11 .Logout .class ));
229+ assertThat (message , instanceOf (quickfix .fixt11 .Logout .class ));
229230 }
230231
231232 @ Test
@@ -243,7 +244,7 @@ public void testParseFix50() throws Exception {
243244 Message message = MessageUtils .parse (mockSession , email .toString ());
244245
245246 assertThat (message , is (notNullValue ()));
246- assertThat (message , is (quickfix .fix50 .Email .class ));
247+ assertThat (message , instanceOf (quickfix .fix50 .Email .class ));
247248 }
248249
249250 // QFJ-973
0 commit comments