bodyConsumer.chunk(ChannelBuffers.wrappedBuffer(chunk), mockResponder);
Preconditions.checkState(mockResponder.getStatus() == null, "failed to deploy app");
chunk = is.read();
}
mockResponder = new MockResponder();
bodyConsumer.finished(mockResponder);
Preconditions.checkState(mockResponder.getStatus().getCode() == 200, "failed to deploy app");
} catch (Exception e) {
throw Throwables.propagate(e);
} finally {
is.close();