AutoSerializer implements Serializable { public List<String> getPatterns() { return patterns; } AutoSerializer(String... patterns);  AutoSerializer(boolean portable, String... patterns); @JsonCreator  AutoSerializer(@JsonProperty("portable") Boolean portable,
      @JsonProperty("patterns") List<String> patterns); Boolean isPortable(); List<String> getPatterns();  }
@Test public void constructorWithNoPatterns() { AutoSerializer autoSerializer = new AutoSerializer(true); assertThat(autoSerializer.getPatterns()).isNull(); }
@Test public void constructorWithNullPatterns() { AutoSerializer autoSerializer = new AutoSerializer(true, (String[]) null); assertThat(autoSerializer.getPatterns()).isNull(); }