BlobMapper extends KeywordMapper { public BlobMapper(String field, String column, Boolean validated) { super(field, column, validated, Arrays.asList(String.class, ByteBuffer.class)); } BlobMapper(String field, String column, Boolean validated);   }
@Test public void testExtractAnalyzers() { BlobMapper mapper = blobMapper().build("field"); assertEquals("Analyzer must be keyword", Mapper.KEYWORD_ANALYZER, mapper.analyzer); }
@Test public void testToString() { BlobMapper mapper = blobMapper().validated(true).build("field"); assertEquals("Method #toString is wrong", "BlobMapper{field=field, validated=true, column=field}", mapper.toString()); }