public void shouldReturnValueSetInConstructor() {
// given
byte[] body = DatatypeConverter.parseBase64Binary("some_body");
// when
BinaryBodyDTO binaryBody = new BinaryBodyDTO(new BinaryBody(body));
// then
assertThat(binaryBody.getValue(), is(DatatypeConverter.printBase64Binary(body)));
assertThat(binaryBody.getType(), is(Body.Type.BINARY));
}