Utilities { public static boolean isNotStringNone(Serializable serializable) { return serializable instanceof String && (!((String) serializable).trim().equalsIgnoreCase(("None"))); }  static boolean isBlankString(Serializable serializable); static boolean isNotBlankString(Serializable serializable); static boolean isAlphanumericString(Serializable serializable); static boolean isNotStringNone(Serializable serializable);  }
@Test public void testIsNotNoneString() throws Exception { assertThat(Utilities.isNotStringNone(" "), is(true)); assertThat(Utilities.isNotStringNone("non"), is(true)); assertThat(Utilities.isNotStringNone("none"), is(false)); assertThat(Utilities.isNotStringNone("None"), is(false)); assertThat(Utilities.isNotStringNone("NONE"), is(false)); assertThat(Utilities.isNotStringNone("None "), is(false)); }