### Question:
AbstractVoteProposerMethod { public JsonRpcResponse response(final JsonRpcRequestContext requestContext) { final Map<String, Boolean> proposals = voteProposer.getProposals().entrySet().stream() .collect( Collectors.toMap( proposal -> proposal.getKey().toString(), proposal -> proposal.getValue() == VoteType.ADD)); return new JsonRpcSuccessResponse(requestContext.getRequest().getId(), proposals); } AbstractVoteProposerMethod(final VoteProposer voteProposer); JsonRpcResponse response(final JsonRpcRequestContext requestContext);  }### Answer:
@Test public void testConversionFromVoteTypeToBoolean() { final JsonRpcRequestContext request = new JsonRpcRequestContext( new JsonRpcRequest(JSON_RPC_VERSION, getMethodName(), new Object[] {})); when(voteProposer.getProposals()) .thenReturn( ImmutableMap.of( Address.fromHexString("1"), VoteType.ADD, Address.fromHexString("2"), VoteType.DROP)); final JsonRpcResponse expectedResponse = new JsonRpcSuccessResponse( request.getRequest().getId(), ImmutableMap.of( "0x0000000000000000000000000000000000000001", true, "0x0000000000000000000000000000000000000002", false)); final JsonRpcResponse response = getMethod().response(request); assertThat(response).isEqualToComparingFieldByField(expectedResponse); }