### Question:
TokenBlobUtils { public void setBlobFromString(Token token, String blob) { Reject.ifNull(token, blob); try { token.setBlob(fromUTF8(blob)); } catch (UnsupportedEncodingException e) { throw new IllegalStateException("Failed to encode blob to " + ENCODING, e); } }  String getBlobAsString(Token token); void setBlobFromString(Token token, String blob); String toUTF8(byte[] data); byte[] fromUTF8(String contents); static final String ENCODING; }### Answer:
@Test public void shouldUseTokenWhenStoringStringAsBlob() throws CoreTokenException { utils.setBlobFromString(mockToken, "badger"); verify(mockToken).setBlob(any(byte[].class)); }