Publishes mocks in java post