import java.nio.charset.StandardCharsets;
import java.util.Base64;

public final class RuntimeCheck {
    public static void main(String[] args) {
        for (String key : new String[] {
                "java.vendor", "java.runtime.version", "java.vm.name", "os.arch"
        }) {
            System.out.println(key + "=" + System.getProperty(key));
        }

        String text = new String(
            Base64.getDecoder().decode("c3RhdHVzPXJlYWR5"),
            StandardCharsets.UTF_8
        );
        if (!"status=ready".equals(text)) {
            throw new IllegalStateException("Unexpected decoding result");
        }
        System.out.println("Valid-input smoke check: PASS");
    }
}
