@Test
public void should_fail_if_actual_is_not_NaN() {
Double actual = new Double(6.0);
MessageFormatter messageFormatter = MessageFormatter.instance();
String message = messageFormatter.format(description, "expected:<%s> but was:<%s>", Double.NaN, actual);
try {
doubles.assertIsNaN(description, new Double(6.0));
} catch (org.junit.ComparisonFailure e) {
e.getMessage().equalsIgnoreCase(message);
return;